- Jul 09, 2012
-
-
Eelco Dolstra authored
No need to duplicate the nix.conf manpage.
-
Eelco Dolstra authored
- Jun 27, 2012
-
-
Eelco Dolstra authored
I.e. when multiple non-derivation arguments are passed to ‘nix-store -r’ to be substituted, do them in parallel.
-
Eelco Dolstra authored
This ensures that whatever the builder writes in /dev/shm is automatically cleaned up.
-
Eelco Dolstra authored
-
- Jun 25, 2012
-
-
Eelco Dolstra authored
In a private PID namespace, processes have PIDs that are separate from the rest of the system. The initial child gets PID 1. Processes in the chroot cannot see processes outside of the chroot. This improves isolation between builds. However, processes on the outside can see processes in the chroot and send signals to them (if they have appropriate rights). Since the builder gets PID 1, it serves as the reaper for zombies in the chroot. This might turn out to be a problem. In that case we'll need to have a small PID 1 process that sits in a loop calling wait().
-
Eelco Dolstra authored
In chroot builds, set the host name to "localhost" and the domain name to "(none)" (the latter being the kernel's default). This improves determinism a bit further. P.S. I have to idea what UTS stands for.
-
- Jun 23, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This improves isolation a bit further, and it's just one extra flag in the unshare() call. P.S. It would be very cool to use CLONE_NEWPID (to put the builder in a private PID namespace) as well, but that's slightly more risky since having a builder start as PID 1 may cause problems.
-
Eelco Dolstra authored
On Linux it's possible to run a process in its own network namespace, meaning that it gets its own set of network interfaces, disjunct from the rest of the system. We use this to completely remove network access to chroot builds, except that they get a private loopback interface. This means that: - Builders cannot connect to the outside network or to other processes on the same machine, except processes within the same build. - Vice versa, other processes cannot connect to processes in a chroot build, and open ports/connections do not show up in "netstat". - If two concurrent builders try to listen on the same port (e.g. as part of a test), they no longer conflict with each other. This was inspired by the "PrivateNetwork" flag in systemd.
-
- Jun 19, 2012
-
-
Eelco Dolstra authored
Systemd can start the Nix daemon on demand when the Nix daemon socket is first accessed. This is signalled through the LISTEN_FDS environment variable, so all we need to do is check for that and then use file descriptor 3 as the listen socket instead of creating one ourselves.
-
- May 31, 2012
-
-
Eelco Dolstra authored
-
Michel Alexandre Salim authored
fixes to nix-worker systemd service descriptor: - remove commented-out lines - register the file for distribution in Makefile.am
-
Michel Alexandre Salim authored
-
Michel Alexandre Salim authored
Major spec update: - Fix license field - Split into subpackages - Update build dependencies - Configure users and groups for multi-user mode - Fix installation location of Perl modules
-
Michel Alexandre Salim authored
Update nix profile: - incorporate NixOS's configuration so that nix is usable by normal users - install as a data file, not a program file
-
Michel Alexandre Salim authored
- only enable deprecated spec sections when building on systems with older RPM versions - move tests to dedicated %check section - use standard build macros
-
Michel Alexandre Salim authored
-
- May 30, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
We can't open a SQLite database if the disk is full. Since this prevents the garbage collector from running when it's most needed, we reserve some dummy space that we can free just before doing a garbage collection. This actually revives some old code from the Berkeley DB days. Fixes #27.
-
- May 29, 2012
-
-
Eelco Dolstra authored
Fixes #26.
-
- May 24, 2012
-
-
Eelco Dolstra authored
-
- May 22, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
For several platforms we don't currently have "native" Nix packages (e.g. Mac OS X and FreeBSD). This provides the next best thing: a tarball containing the closure of Nix, plus a simple script "nix-finish-install" that initialises the Nix database, registers the paths in the closure as valid, and runs "nix-env -i /path/to/nix" to initialise the user profile. The tarball must be unpacked in the root directory. It creates /nix/store/... and /usr/bin/nix-finish-install. Typical installation is as follows: $ cd / $ tar xvf /path/to/nix-1.1pre1234_abcdef-x86_64-linux.tar.bz2 $ nix-finish-install (if necessary add ~/.nix-profile/etc/profile.d/nix.sh to the shell login scripts) After this, /usr/bin/nix-finish-install can be deleted, if desired. The downside to the binary tarball is that it's pretty big (~55 MiB for x86_64-linux).
-
Eelco Dolstra authored
It's no longer needed because Nixpkgs' fontconfig uses /etc/fonts/fonts.conf as a default, just like other distributions.
-
- May 21, 2012
-
-
Eelco Dolstra authored
To use it, just do (e.g.) "nix-build build.nix -A nix_env".
-
- May 12, 2012
-
-
Eelco Dolstra authored
-
- May 11, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- May 10, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Since the Perl bindings require shared libraries, this is required on platforms such as Cygwin where we do a static build.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-