about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2012-08-01 DohEelco Dolstra1-1/+1
2012-08-01 nix-env: Ignore manifest.nix when recursing into ~/.nix-defexprEelco Dolstra1-0/+5
Channels are implemented using a profile now, and profiles contain a manifest.nix file. This should be ignored to prevent bogus packages from showing up in nix-env.
2012-08-01 Use a GNU tar flag to shut up warnings about implausibly old timestampEelco Dolstra4-1/+15
2012-08-01 Inline unpack-channel.shEelco Dolstra3-8/+17
2012-08-01 download-from-binary-cache: Remove duplicate URLsEelco Dolstra1-2/+2
2012-08-01 Report substituter errors to clients of the Nix daemonEelco Dolstra5-30/+53
2012-07-31 Allow daemon users to override ‘binary-caches’Eelco Dolstra2-3/+40
For security reasons, daemon users can only specify caches that appear in the ‘binary-caches’ and ‘trusted-binary-caches’ options in nix.conf.
2012-07-31 Prevent an injection attack in passing untrusted options to substitutersEelco Dolstra1-0/+4
2012-07-31 Pass all --option flags to the daemonEelco Dolstra4-3/+30
2012-07-31 Add an option ‘build-fallback’ (equivalent to the --fallback flag)Eelco Dolstra3-2/+13
2012-07-30 Refactor settings processingEelco Dolstra19-522/+566
Put all Nix configuration flags in a Settings object.
2012-07-30 WhitespaceEelco Dolstra4-61/+61
2012-07-30 Do some validation of URLsEelco Dolstra4-6/+9
2012-07-30 Fix the testEelco Dolstra1-4/+4
2012-07-30 Get rid of $NIX_BINARY_CACHESEelco Dolstra2-5/+6
You can use ‘--option binary-caches URLs’ instead.
2012-07-30 nix-install-package: Support binary cachesEelco Dolstra1-10/+19
The .nixpkg file format is extended to optionally include the URL of a binary cache, which will be used in preference to the manifest URL (which can be set to a non-existent value).
2012-07-30 Pass configuration settings to the substitutersEelco Dolstra5-6/+37
Previously substituters could read nix.conf themselves, but this didn't take --option flags into account.
2012-07-30 Remove unused variablesEelco Dolstra2-5/+0
2012-07-30 Fix whitespaceEelco Dolstra1-71/+71
2012-07-27 Allow a binary cache to declare that it doesn't support "nix-env -qas"Eelco Dolstra3-86/+135
Querying all substitutable paths via "nix-env -qas" is potentially hard on a server, since it involves sending thousands of HEAD requests. So a binary cache must now have a meta-info file named "nix-cache-info" that specifies whether the server wants this. It also specifies the store prefix so that we don't send useless queries to a binary cache for a different store prefix.
2012-07-27 Use "set -x" in the tests to see where a test failsEelco Dolstra2-0/+4
2012-07-27 Test "nix-env -qas" with the binary cache substituterEelco Dolstra1-1/+4
2012-07-27 Let build.cc verify the expected hash of a substituter's outputEelco Dolstra5-26/+43
Since SubstitutionGoal::finished() in build.cc computes the hash anyway, we can prevent the inefficiency of computing the hash twice by letting the substituter tell Nix about the expected hash, which can then verify it.
2012-07-27 Remove more tabsEelco Dolstra1-9/+9
2012-07-27 download-using-manifests: Don't use nix-prefetch-urlEelco Dolstra2-42/+30
Instead call curl directly and pipe it into ‘nix-store --restore’. This saves I/O and prevents creating garbage in the Nix store.
2012-07-27 Remove trailing whitespace / tabsEelco Dolstra2-147/+147
2012-07-27 download-from-binary-cache: Only use the default cache for /nix/storeEelco Dolstra1-1/+3
2012-07-26 nix-push: Support generating a manifest againEelco Dolstra6-17/+46
This makes all the tests succeed. Woohoo!
2012-07-26 Fix the substituter testsEelco Dolstra3-30/+36
2012-07-26 nix-push: Remove the upload featureEelco Dolstra1-51/+24
2012-07-26 Add a test for the binary cache substituterEelco Dolstra2-1/+21
2012-07-26 Clear NIX_STORE when running the testsEelco Dolstra2-1/+2
2012-07-26 download-from-binary-cache: Support file://Eelco Dolstra1-9/+14
The file:// URI schema requires checking for errors in a more general way. Also, don't cache file:// lookups.
2012-07-26 Add some .gitignore entriesEelco Dolstra1-0/+3
2012-07-26 Merge branch 'master' into no-manifestsEelco Dolstra50-305/+341
2012-07-26 Set permissions on temporary build directories to 0700Eelco Dolstra3-4/+5
Fixes #39.
2012-07-25 nix-profile.sh: Don't set NIX_REMOTE on single user installationsEelco Dolstra1-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 channelEelco Dolstra1-2/+2
2012-07-25 prim_import: When importing .drvs, allocate the intermediate attrset on the ↵Shea Levy1-1/+1
heap just in case it escapes the stack frame.
2012-07-25 Turn tests back onShea Levy1-1/+1
2012-07-25 import: If the path is a valid .drv file, parse it and generate a derivation ↵Shea Levy3-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 temporarilyShea Levy1-1/+1
2012-07-23 Handle platforms that don't support linking to a symlinkEelco Dolstra2-2/+19
E.g. Darwin doesn't allow this.
2012-07-23 Unlink the right fileEelco Dolstra1-2/+2
2012-07-23 Add a test for Nix store optimisationEelco Dolstra2-1/+27
2012-07-23 Garbage collect unused links in /nix/store/.linksEelco Dolstra2-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 addedEelco Dolstra5-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/.linksEelco Dolstra3-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 stdinEelco Dolstra1-0/+4
2012-07-23 Use lutimes() if available to canonicalise the timestamp of symlinksEelco Dolstra2-9/+21
Also use utimes() instead of utime() if lutimes() is not available.