Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-07-18 | Use "#pragma once" to prevent repeated header file inclusion | Eelco Dolstra | 32 | -166/+31 | |
2012-07-18 | Set release date | Eelco Dolstra | 1 | -1/+1 | |
2012-07-17 | Add function queryPathFromHashPart() | Eelco Dolstra | 9 | -0/+67 | |
To implement binary caches efficiently, Hydra needs to be able to map the hash part of a store path (e.g. "gbg...zr7") to the full store path (e.g. "/nix/store/gbg...kzr7-subversion-1.7.5"). (The binary cache mechanism uses hash parts as a key for looking up store paths to ensure privacy.) However, doing a search in the Nix store for /nix/store/<hash>* is expensive since it requires reading the entire directory. queryPathFromHashPart() prevents this by doing a cheap database lookup. | |||||
2012-07-17 | queryPathInfo(): return hash in base-32 if desired | Eelco Dolstra | 1 | -2/+2 | |
Cherry-picked from the no-manifests branch. | |||||
2012-07-17 | Return an exit code of 100 for cached failed builds | Eelco Dolstra | 1 | -0/+1 | |
Exit code 100 should be returned for all permanent failures. This includes cached failures. Fixes #34. | |||||
2012-07-17 | Remove dead code | Eelco Dolstra | 2 | -13/+0 | |
2012-07-17 | Manual: Don't claim we support Cygwin | Eelco Dolstra | 1 | -1/+1 | |
2012-07-17 | Update Nix 1.1 release notes | Eelco Dolstra | 2 | -8/+70 | |
2012-07-17 | Allow disabling log compression | Eelco Dolstra | 2 | -12/+35 | |
2012-07-12 | builtins.storePath: resolve symlinks | Eelco Dolstra | 1 | -1/+5 | |
Needed for Charon/Hydra interaction. | |||||
2012-07-09 | Pass --insecure to curl so that https works | Eelco Dolstra | 1 | -1/+1 | |
2012-07-09 | Inline fetchurl.sh | Eelco Dolstra | 3 | -9/+13 | |
2012-07-09 | Add a test for the fetchurl function | Eelco Dolstra | 3 | -1/+17 | |
2012-07-09 | Remove obsolete comment | Shea Levy | 1 | -3/+0 | |
2012-07-09 | corepkgs/fetchurl: Build locally and outside of the chroot | Shea Levy | 1 | -0/+6 | |
2012-07-09 | corepkgs/fetchurl: the 'system' argument can be optional | Shea Levy | 1 | -1/+1 | |
2012-07-09 | corepkgs: distribute fetchurl files | Shea Levy | 1 | -1/+1 | |
2012-07-09 | corepkgs/fetchurl: Call the shell directly instead of using the shebang | Shea Levy | 2 | -3/+2 | |
2012-07-09 | corepkgs/fetchurl.sh: Use config.nix's curl | Shea Levy | 2 | -2/+4 | |
2012-07-09 | The fetchurl builder is now fetchurl.sh | Shea Levy | 1 | -1/+1 | |
2012-07-09 | Remove old fetchurl makefile | Shea Levy | 1 | -11/+0 | |
2012-07-09 | Move fetchurl files out of their subdirectory | Shea Levy | 2 | -0/+0 | |
2012-07-09 | corepkgs/config.nix.in: We'll need curl | Shea Levy | 1 | -0/+1 | |
2012-07-09 | Resurrect old corepkgs fetchurl | Shea Levy | 3 | -0/+39 | |
2012-07-09 | Really fix RPM builds | Eelco Dolstra | 1 | -3/+3 | |
2012-07-09 | Fix RPM builds | Eelco Dolstra | 1 | -0/+1 | |
http://hydra.nixos.org/build/2784908 | |||||
2012-07-09 | Get rid of nix.conf.example | Eelco Dolstra | 3 | -190/+2 | |
No need to duplicate the nix.conf manpage. | |||||
2012-07-09 | Install a nix.conf manpage | Eelco Dolstra | 3 | -12/+28 | |
2012-06-27 | nix-store -r: do substitutions in parallel | Eelco Dolstra | 11 | -25/+30 | |
I.e. when multiple non-derivation arguments are passed to ‘nix-store -r’ to be substituted, do them in parallel. | |||||
2012-06-27 | Mount an empty /dev/shm tmpfs in the chroot | Eelco Dolstra | 1 | -0/+6 | |
This ensures that whatever the builder writes in /dev/shm is automatically cleaned up. | |||||
2012-06-27 | Check the return code of the clone() call | Eelco Dolstra | 1 | -1/+2 | |
2012-06-25 | When using chroots, use a private PID namespace | Eelco Dolstra | 2 | -156/+186 | |
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(). | |||||
2012-06-25 | Use a private UTS namespace to provide a deterministic host/domain name to ↵ | Eelco Dolstra | 1 | -1/+7 | |
builders 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. | |||||
2012-06-23 | Update release notes | Eelco Dolstra | 1 | -1/+15 | |
2012-06-23 | Improve error message | Eelco Dolstra | 1 | -1/+1 | |
2012-06-23 | In chroot builds, use a private SysV IPC namespace | Eelco Dolstra | 1 | -12/+19 | |
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. | |||||
2012-06-23 | In chroot builds, use a private network namespace | Eelco Dolstra | 1 | -6/+31 | |
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. | |||||
2012-06-18 | Support socket-based, on-demand activation of the Nix daemon with systemd | Eelco Dolstra | 1 | -30/+46 | |
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. | |||||
2012-05-31 | Add Emacs to the disk image | Eelco Dolstra | 1 | -1/+1 | |
2012-05-31 | fixes to nix-worker systemd service descriptor: - remove commented-out lines ↵ | Michel Alexandre Salim | 2 | -3/+1 | |
- register the file for distribution in Makefile.am | |||||
2012-05-31 | On systems with SystemD, install the service descriptor for nix-worker, and ↵ | Michel Alexandre Salim | 2 | -0/+28 | |
enable and start it | |||||
2012-05-31 | Major spec update: - Fix license field - Split into subpackages - Update ↵ | Michel Alexandre Salim | 1 | -46/+149 | |
build dependencies - Configure users and groups for multi-user mode - Fix installation location of Perl modules | |||||
2012-05-31 | Update nix profile: - incorporate NixOS's configuration so that nix is ↵ | Michel Alexandre Salim | 2 | -8/+47 | |
usable by normal users - install as a data file, not a program file | |||||
2012-05-31 | - only enable deprecated spec sections when building on systems with older ↵ | Michel Alexandre Salim | 1 | -6/+12 | |
RPM versions - move tests to dedicated %check section - use standard build macros | |||||
2012-05-31 | - replace %define with %global | Michel Alexandre Salim | 1 | -5/+5 | |
2012-05-30 | Compress build logs on the fly using bzip2 | Eelco Dolstra | 2 | -11/+45 | |
2012-05-30 | "nix-store -l": support compressed logs | Eelco Dolstra | 2 | -9/+34 | |
2012-05-29 | Reserve some disk space for the garbage collector | Eelco Dolstra | 9 | -11/+35 | |
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. | |||||
2012-05-29 | Add option ‘build-keep-log’ to enable/disable writing of build logs | Eelco Dolstra | 3 | -1/+36 | |
Fixes #26. | |||||
2012-05-24 | Clean up the installation section; document the generic binary tarballs | Eelco Dolstra | 1 | -96/+148 | |