SlackBuilds Repository

14.2 > System > nix (1.11.13)

Nix is a purely functional package manager. This means that it treats
packages like values in purely functional programming languages such as
Haskell -- they are built by functions that don't have side-effects,
and they never change after they have been built. Nix stores packages
in the Nix store, usually the directory /nix/store, where each package
has its own unique subdirectory such as

/nix/store/b6gvzjyb2pg0kjfwrjmg1vfhh54ad73z-firefox-33.1/

where b6gvzjyb2pg0... is a unique identifier for the package that
captures all its dependencies (it's a cryptographic hash of the
package's build dependency graph).

Nix may be run in single or multi-user mode (which requires the
nix-daemon). To have the nix daemon start and stop with your host,
add to /etc/rc.d/rc.local:

if [ -x /etc/rc.d/rc.nix ]; then
/etc/rc.d/rc.nix start
fi

and to /etc/rc.d/rc.local_shutdown (creating it if needed):

if [ -x /etc/rc.d/rc.nix ]; then
/etc/rc.d/rc.nix stop
fi

The daemon requires users for building the nix packages, which should
be added under the 'nixbld' group.

groupadd -g 314 nixbld
for n in $(seq 1 10); do useradd -c "Nix build user $n" \
-d /var/empty -g nixbld -G nixbld -M -N -r -s "$(which nologin)" \
nixbld$n; done

Restricting access to the daemon is acheived by setting file
permissions for the daemon's socket's folder.

groupadd nix-users
chgrp nix-users /nix/var/nix/daemon-socket
chmod ug=rwx,o= /nix/var/nix/daemon-socket

Correct permissions must also be set for the following profile
directories to give users access.

/nix/var/nix/profiles
/var/nix/profiles

If you have patches email me, or send a pull request via github:

https://github.com/PragmaticCypher/slackbuilds

This requires: libseccomp, perl-WWW-Curl, perl-DBD-SQLite

Maintained by: Pragmatic Cypher
Keywords: package manager,nix
ChangeLog: nix

Homepage:
http://nixos.org/nix

Source Downloads:
nix-1.11.13.tar.xz (7f12df0c0057ac6d057dee639269403f)

Download SlackBuild:
nix.tar.gz
nix.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Individual Files:
README
doinst.sh
nix.SlackBuild
nix.info
rc.nix
slack-desc

Validated for Slackware 14.2

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2018 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds
Web Design by WebSight Designs |  Managed Hosting by OnyxLight Communications