about summary refs log tree commit diff
path: root/src/nix/command.hh
AgeCommit message (Collapse)AuthorFilesLines
2018-02-12 toBuildables -> buildEelco Dolstra1-1/+1
2018-01-31 Add 'nix upgrade-nix' commandEelco Dolstra1-0/+2
This command upgrades Nix to the latest stable version by installing a store path obtained from https://github.com/NixOS/nixpkgs/raw/master/nixos/modules/installer/tools/nix-fallback-paths.nix which is the same store path that the installer at https://nixos.org/nix/install.sh uses. The upgrade fails if Nix is not installed in a profile (e.g. on NixOS, or when installed outside of the Nix store).
2017-12-11 Fix forward-decl of Bindings as "class", match definition.Will Dietz1-1/+1
(appease clang -Wmismatched-tags warning)
2017-10-24 nix: Respect -I, --arg, --argstrEelco Dolstra1-6/+5
Also, random cleanup to argument handling.
2017-10-23 Turn $NIX_REMOTE into a configuration optionEelco Dolstra1-1/+0
2017-09-27 nix copy: make recursive by defaultEelco Dolstra1-1/+1
2017-09-25 Add "nix show-derivation"Eelco Dolstra1-0/+4
This debug command prints a store derivation in JSON format. For example: $ nix show-derivation nixpkgs.hello { "/nix/store/ayjwpwwiyy04nh9z71rsdgd3q7bra7ch-hello-2.10.drv": { "outputs": { "out": { "path": "/nix/store/w5w4v29ql0qwqhczkdxs94ix2lh7ibgs-hello-2.10" } }, "inputSrcs": [ "/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh" ], "inputDrvs": { "/nix/store/13839aqdf6x4k3b785rw5f2l7857l6y3-bash-4.4-p12.drv": [ "out" ], "/nix/store/vgdx7fdc7d4iirmnwj2py1nrvr5qwzj7-hello-2.10.tar.gz.drv": [ "out" ], "/nix/store/x3kkd0vsqfflbvwf1055l9mr39bg0ms0-stdenv.drv": [ "out" ] }, "platform": "x86_64-linux", "builder": "/nix/store/qp5fw57d38bd1n07ss4zxh88zg67c3vg-bash-4.4-p12/bin/bash", "args": [ "-e", "/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh" ], "env": { "buildInputs": "", "builder": "/nix/store/qp5fw57d38bd1n07ss4zxh88zg67c3vg-bash-4.4-p12/bin/bash", "configureFlags": "", "doCheck": "1", "name": "hello-2.10", "nativeBuildInputs": "", "out": "/nix/store/w5w4v29ql0qwqhczkdxs94ix2lh7ibgs-hello-2.10", "propagatedBuildInputs": "", "propagatedNativeBuildInputs": "", "src": "/nix/store/3x7dwzq014bblazs7kq20p9hyzz0qh8g-hello-2.10.tar.gz", "stdenv": "/nix/store/6zngq1rdh0ans9qyckqimqibgnlvlfrm-stdenv", "system": "x86_64-linux" } } } This removes the need for pp-aterm.
2017-09-10 nix build: Only download the requested derivation outputsEelco Dolstra1-6/+15
Also some refactoring.
2017-09-06 nix build: Create result symlinksEelco Dolstra1-5/+14
2017-08-29 nix edit / log: Operate on a single InstallableEelco Dolstra1-3/+17
2017-07-30 Replace Unicode quotes in user-facing strings by ASCIIJörg Thalheim1-2/+2
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
2017-07-20 Add "nix search" commandEelco Dolstra1-12/+22
2017-07-14 Avoid a call to derivationFromPath()Eelco Dolstra1-1/+4
This doesn't work in read-only mode, ensuring that operations like nix path-info --store https://cache.nixos.org -S nixpkgs.hello (asking for the closure size of nixpkgs.hello in cache.nixos.org) work when nixpkgs.hello doesn't exist in the local store.
2017-07-14 StorePathsCommand: Don't build installablesEelco Dolstra1-1/+3
On second though this was annoying. E.g. "nix log nixpkgs.hello" would build/download Hello first, even though the log can be fetched directly from the binary cache. May need to revisit this.
2017-05-04 nix dump-path: AddEelco Dolstra1-0/+10
This is primarily useful for extracting NARs from other stores (like binary caches), which "nix-store --dump" cannot do.
2017-05-02 Fix "nix ... --all"Eelco Dolstra1-1/+5
When "--all" is used, we should not fill in a default installable.
2017-04-25 Make StorePathsCommand a subclass of InstallablesCommandEelco Dolstra1-20/+19
This allows commands like 'nix path-info', 'nix copy', 'nix verify' etc. to work on arbitrary installables. E.g. to copy geeqie to a binary cache: $ nix copy -r --to file:///tmp/binary-cache nixpkgs.geeqie Or to get the closure size of thunderbird: $ nix path-info -S nixpkgs.thunderbird
2017-04-25 Move code aroundEelco Dolstra1-0/+54
2017-04-25 Restructure installables handling in the "nix" commandEelco Dolstra1-0/+4
2017-03-16 nix copy: Make -r option use the "from" storeEelco Dolstra1-0/+1
Previously, we tried to compute the closure in the local store, which obviously doesn't work.
2016-11-26 Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra1-1/+1
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25 Get rid of unicode quotes (#1140)Guillaume Maudoux1-1/+1
2016-05-31 Shut up some clang warningsEelco Dolstra1-0/+2
2016-04-21 nix --help: Show usage examplesEelco Dolstra1-0/+12
2016-04-15 Unify "nix verify-paths" and "nix verify-store"Eelco Dolstra1-0/+1
"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-03-29 Add "nix verify-paths" commandEelco Dolstra1-0/+17
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 Dolstra1-3/+2
This is a bit user-friendlier than using $NIX_REMOTE.
2016-03-14 Fix build on clang due to -Wmismatched-tagsEelco Dolstra1-1/+2
http://hydra.nixos.org/build/33073389
2016-02-09 Start of new Nix command-line interfaceEelco Dolstra1-0/+59