about summary refs log tree commit diff
path: root/src/nix (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-09-02 Merge openStore and openStoreAt with default argumentsShea Levy4-5/+5
2016-08-30 Fix 32-bit buildEelco Dolstra1-5/+2
2016-08-29 nix path-info: Add --json flagEelco Dolstra1-22/+81
Also, factor out JSON generation from value-to-json.{cc,hh}, and support producing indented JSON.
2016-08-23 nix build: Use Nix search pathEelco Dolstra2-6/+48
That is, unless --file is specified, the Nix search path is synthesized into an attribute set. Thus you can say $ nix build nixpkgs.hello assuming $NIX_PATH contains an entry of the form "nixpkgs=...". This is more verbose than $ nix build hello but is less ambiguous.
2016-08-10 Mark content-addressed paths in the Nix database and in .narinfoEelco Dolstra2-1/+6
This allows such paths to be imported without signatures.
2016-06-02 nix run: Set a reasonable uid/gidEelco Dolstra1-0/+7
2016-06-02 nix run: Handle the case where the /nix/store mount point doesn't existEelco Dolstra1-2/+39
2016-06-02 nix run: Mount the Nix store in a private namespaceEelco Dolstra1-1/+21
This is a convenience command to allow users who are not privileged to create /nix/store to use Nix with regular binary caches. For example, $ NIX_REMOTE="local?state=$HOME/nix/var&real=/$HOME/nix/store" nix run firefox bashInteractive will download Firefox and bash from cache.nixos.org, then start a shell in which $HOME/nix/store is mounted on /nix/store.
2016-06-02 Add basic "nix run" commandEelco Dolstra1-0/+62
2016-06-01 Make the store directory a member variable of StoreEelco Dolstra2-2/+2
2016-05-31 Shut up some clang warningsEelco Dolstra2-1/+3
2016-05-04 Add a Store::addToStore() variant that accepts a NAREelco Dolstra1-1/+1
As a side effect, this ensures that signatures are propagated when copying paths between stores. Also refactored import/export to make use of this.
2016-05-04 Add a copyStorePath() utility functionEelco Dolstra1-5/+1
2016-04-25 nix: Disable verbose buildsEelco Dolstra1-0/+2
2016-04-25 Improved logging abstractionEelco Dolstra7-148/+165
This also gets rid of --log-type, since the nested log type isn't useful in a multi-threaded situation, and nobody cares about the "pretty" log type.
2016-04-22 Factor out parallel processing of work items that have dependenciesEelco Dolstra1-55/+18
2016-04-22 nix copy: ParalleliseEelco Dolstra4-20/+59
2016-04-22 Fold "nix query-path-sigs" into "nix path-info"Eelco Dolstra2-31/+10
2016-04-22 Add "nix copy" commandEelco Dolstra1-0/+87
This replaces nix-push. For example, $ nix copy --to file:///tmp/cache -r $(type -p firefox) copies the closure of firefox to the specified binary cache. And $ nix copy --from file:///tmp/cache --to s3://my-cache /nix/store/abcd... copies between two binary caches. It will also replace nix-copy-closure, once we have an SSHStore class, e.g. $ nix copy --from ssh://alice@machine /nix/store/abcd...
2016-04-21 Implement S3BinaryCacheStore::queryAllValidPaths()Eelco Dolstra2-9/+10
This allows commands like "nix verify --all" or "nix path-info --all" to work on S3 caches. Unfortunately, this requires some ugly hackery: when querying the contents of the bucket, we don't want to have to read every .narinfo file. But the S3 bucket keys only include the hash part of each store path, not the name part. So as a special exception queryAllValidPaths() can now return store paths *without* the name part, and queryPathInfo() accepts such store paths (returning a ValidPathInfo object containing the full name).
2016-04-21 nix path-info: AddEelco Dolstra1-0/+75
Forgot to commit this earlier...
2016-04-21 nix --help: Show usage examplesEelco Dolstra3-0/+41
2016-04-19 Move path info caching from BinaryCacheStore to StoreEelco Dolstra2-25/+27
Caching path info is generally useful. For instance, it speeds up "nix path-info -rS /run/current-system" (i.e. showing the closure sizes of all paths in the closure of the current system) from 5.6s to 0.15s. This also eliminates some APIs like Store::queryDeriver() and Store::queryReferences().
2016-04-15 Unify "nix verify-paths" and "nix verify-store"Eelco Dolstra3-60/+31
"verify-store" is now simply an "--all" flag to "nix verify". This flag can be used for any other store path command as well (e.g. "nix path-info", "nix copy-sigs", ...).
2016-04-07 nix verify-paths: Add ‘--sigs-needed <N>’ flagEelco Dolstra1-15/+31
This specifies the number of distinct signatures required to consider each path "trusted". Also renamed ‘--no-sigs’ to ‘--no-trust’ for the flag that disables verifying whether a path is trusted (since a path can also be trusted if it has no signatures, but was built locally).
2016-04-05 Add "nix sign-paths" commandEelco Dolstra1-1/+49
E.g. $ nix sign-paths -k ./secret -r $(type -p geeqie) signs geeqie and all its dependencies using the key in ./secret.
2016-04-05 Add "nix copy-sigs" commandEelco Dolstra1-0/+133
This imports signatures from one store into another. E.g. $ nix copy-sigs -r /run/current-system -s https://cache.nixos.org/ imported 595 signatures
2016-03-30 nix verify: Support checking against signatures in other storesEelco Dolstra1-2/+33
Typical usage is to check local paths using the signatures from a binary cache: $ nix verify-paths -r /run/current-system -s https://cache.nixos.org path ‘/nix/store/c1k4zqfb74wba5sn4yflb044gvap0x6k-nixos-system-mandark-16.03.git.fc2d7a5M’ is untrusted ... checked 844 paths, 119 untrusted
2016-03-29 Add "nix verify-store" commandEelco Dolstra1-13/+53
Like "nix-store --verify --check-contents", but with the same advantages as "nix verify-paths".
2016-03-29 Add "nix verify-paths" commandEelco Dolstra5-0/+283
Unlike "nix-store --verify-path", this command verifies signatures in addition to store path contents, is multi-threaded (especially useful when verifying binary caches), and has a progress indicator. Example use: $ nix verify-paths --store https://cache.nixos.org -r $(type -p thunderbird) ... [17/132 checked] checking ‘/nix/store/rawakphadqrqxr6zri2rmnxh03gqkrl3-autogen-5.18.6’
2016-03-21 nix: Add --store flagEelco Dolstra2-4/+10
This is a bit user-friendlier than using $NIX_REMOTE.
2016-03-15 Fix Darwin buildEelco Dolstra1-0/+1
http://hydra.nixos.org/build/33279996
2016-03-14 Fix build on clang due to -Wmismatched-tagsEelco Dolstra1-1/+2
http://hydra.nixos.org/build/33073389
2016-03-04 Add warning about "nix" being experimentalEelco Dolstra1-0/+1
2016-02-25 nix: Add commands to query contents of NARs / binary cachesEelco Dolstra2-0/+197
For example, $ NIX_REMOTE=file:///my-cache nix ls-store -lR /nix/store/f4kbgl8shhyy76rkk3nbxr0lz8d2ip7q-binutils-2.23.1 dr-xr-xr-x 0 ./bin -r-xr-xr-x 30748 ./bin/addr2line -r-xr-xr-x 66973 ./bin/ar ... Similarly, "nix ls-nar" lists the contents of a NAR file, "nix cat-nar" extracts a file from a NAR file, and "nix cat-store" extract a file from a Nix store.
2016-02-25 Fix buildEelco Dolstra3-6/+6
2016-02-16 Fix to-base16 descriptionTristan Hume1-1/+1
2016-02-09 Add basic "nix build" commandEelco Dolstra3-0/+159
Currently only builds by attribute from <nixpkgs> or the specified file, e.g. "nix build hello".
2016-02-09 Start of new Nix command-line interfaceEelco Dolstra7-0/+357
2003-11-18 * nix -> nix-store, fix -> nix-instantiate.Eelco Dolstra5-506/+0
2003-11-18 * "Nix expression" -> "store expression".Eelco Dolstra4-16/+16
* More refactoring.
2003-11-18 * libnix -> libstore.Eelco Dolstra1-2/+2
2003-11-18 * Source tree refactoring.Eelco Dolstra1-3/+3
2003-10-20 * Finished refactoring the tree.Eelco Dolstra1-0/+27
2003-10-20 * Refactored the source tree.Eelco Dolstra4-0/+479