Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-08-05 | Fix race condition when two processes create a hard link to a file in .links | Eelco Dolstra | 1 | -27/+37 | |
This is a problem because one process may set the immutable bit before the second process has created its link. Addressed random Hydra failures such as: error: cannot rename `/nix/store/.tmp-link-17397-1804289383' to `/nix/store/rsvzm574rlfip3830ac7kmaa028bzl6h-nixos-0.1pre-git/upstart-interface-version': Operation not permitted | |||||
2012-08-05 | Fix race condition when two processes create the same link in /nix/store/.links | Eelco Dolstra | 1 | -4/+4 | |
2012-08-01 | Count bytes freed deleting unused links | Eelco Dolstra | 2 | -3/+5 | |
2012-08-01 | Drop the block count in the garbage collector | Eelco Dolstra | 9 | -37/+23 | |
2012-08-01 | nix-store --gc: Make ‘--max-freed 0’ do the right thing | Eelco Dolstra | 4 | -7/+6 | |
That is, delete almost nothing (it will still remove unused links from /nix/store/.links). | |||||
2012-08-01 | removeUnusedLinks(): Print stats on disk space saved by hard linking | Eelco Dolstra | 1 | -1/+16 | |
2012-08-01 | Doh | Eelco Dolstra | 1 | -1/+2 | |
2012-08-01 | Make ‘nix-store --optimise’ interruptible | Eelco Dolstra | 1 | -0/+2 | |
2012-07-30 | Manual: Remove reference to non-existent -I option | Eelco Dolstra | 1 | -15/+0 | |
2012-07-29 | Document the --option flag | Eelco Dolstra | 2 | -1/+16 | |
Pointed out by Daniel Santa Cruz on IRC. | |||||
2012-07-26 | Set permissions on temporary build directories to 0700 | Eelco Dolstra | 3 | -4/+5 | |
Fixes #39. | |||||
2012-07-25 | nix-profile.sh: Don't set NIX_REMOTE on single user installations | Eelco Dolstra | 1 | -1/+1 | |
Commit 6a214f3e06fa1c5f0a4d40e555f14d87691af297 reused the NixOS environment initialisation for nix-profile.sh, but this is inappropriate on systems that don't have multi-user support enabled. | |||||
2012-07-25 | Subscribe to the Nixpkgs rather than NixOS channel | Eelco Dolstra | 1 | -2/+2 | |
2012-07-25 | prim_import: When importing .drvs, allocate the intermediate attrset on the ↵ | Shea Levy | 1 | -1/+1 | |
heap just in case it escapes the stack frame. | |||||
2012-07-25 | Turn tests back on | Shea Levy | 1 | -1/+1 | |
2012-07-25 | import: If the path is a valid .drv file, parse it and generate a derivation ↵ | Shea Levy | 3 | -2/+48 | |
attrset. The generated attrset has drvPath and outPath with the right string context, type 'derivation', outputName with the right name, all with a list of outputs, and an attribute for each output. I see three uses for this (though certainly there may be more): * Using derivations generated by something besides nix-instantiate (e.g. guix) * Allowing packages provided by channels to be used in nix expressions. If a channel installed a valid deriver for each package it provides into the store, then those could be imported and used as dependencies or installed in environment.systemPackages, for example. * Enable hydra to be consistent in how it treats inputs that are outputs of another build. Right now, if an input is passed as an argument to the job, it is passed as a derivation, but if it is accessed via NIX_PATH (i.e. through the <> syntax), then it is a path that can be imported. This is problematic because the build being depended upon may have been built with non-obvious arguments passed to its jobset file. With this feature, hydra can just set the name of that input to the path to its drv file in NIX_PATH | |||||
2012-07-25 | Disable tests temporarily | Shea Levy | 1 | -1/+1 | |
2012-07-23 | Handle platforms that don't support linking to a symlink | Eelco Dolstra | 2 | -2/+19 | |
E.g. Darwin doesn't allow this. | |||||
2012-07-23 | Unlink the right file | Eelco Dolstra | 1 | -2/+2 | |
2012-07-23 | Add a test for Nix store optimisation | Eelco Dolstra | 2 | -1/+27 | |
2012-07-23 | Garbage collect unused links in /nix/store/.links | Eelco Dolstra | 2 | -0/+39 | |
Incremental optimisation requires creating links in /nix/store/.links to all files in the store. However, this means that if we delete a store path, no files are actually deleted because links in /nix/store/.links still exists. So we need to check /nix/store/.links for files with a link count of 1 and delete them. | |||||
2012-07-23 | Automatically optimise the Nix store when a new path is added | Eelco Dolstra | 5 | -10/+45 | |
Auto-optimisation is enabled by default. It can be turned off by setting auto-optimise-store to false in nix.conf. | |||||
2012-07-23 | optimiseStore(): Use a content-addressed file store in /nix/store/.links | Eelco Dolstra | 3 | -115/+110 | |
optimiseStore() now creates persistent, content-addressed hard links in /nix/store/.links. For instance, if it encounters a file P with hash H, it will create a hard link P' = /nix/store/.link/<H> to P if P' doesn't already exist; if P' exist, then P is replaced by a hard link to P'. This is better than the previous in-memory map, because it had the tendency to unnecessarily replace hard links with a hard link to whatever happened to be the first file with a given hash it encountered. It also allows on-the-fly, incremental optimisation. | |||||
2012-07-23 | nix-build: Support the ‘-’ argument to build an expression from stdin | Eelco Dolstra | 1 | -0/+4 | |
2012-07-23 | Use lutimes() if available to canonicalise the timestamp of symlinks | Eelco Dolstra | 2 | -9/+21 | |
Also use utimes() instead of utime() if lutimes() is not available. | |||||
2012-07-18 | Bump version | Eelco Dolstra | 1 | -1/+1 | |
2012-07-18 | Remove RPM builds that don't evaluate | Eelco Dolstra | 1 | -4/+0 | |
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 | |