about summary refs log tree commit diff
path: root/src/nix/installables.cc
AgeCommit message (Collapse)AuthorFilesLines
2018-06-13 nix: Remove special handling of .drv filesEelco Dolstra1-22/+2
This makes 'nix copy' and 'nix path-info' work on .drv store paths. Removing special treatment of .drv files seems the most future-proof approach given the possible removal of .drv files in the future. Note that 'nix build' will still build (rather than substitute) .drv paths due to the unfortunate overloading in Store::buildPaths().
2018-02-12 toBuildables -> buildEelco Dolstra1-2/+2
2018-01-16 parseExprFromFile -> evalFileEelco Dolstra1-4/+2
parseExprFromFile() should be avoided since it doesn't cache anything.
2017-10-24 nix: Respect -I, --arg, --argstrEelco Dolstra1-10/+16
Also, random cleanup to argument handling.
2017-09-27 nix build: Fix realising a store pathEelco Dolstra1-1/+3
2017-09-25 Add "nix show-derivation"Eelco Dolstra1-0/+24
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-8/+33
Also some refactoring.
2017-09-06 nix build: Create result symlinksEelco Dolstra1-23/+64
2017-09-01 Fix verbosity level for nix build --dry-runEelco Dolstra1-1/+1
2017-08-29 nix edit / log: Operate on a single InstallableEelco Dolstra1-45/+39
2017-08-16 Improve substitution progress indicatorEelco Dolstra1-1/+1
E.g. $ nix build --store local?root=/tmp/nix nixpkgs.firefox-unwrapped [0/1 built, 1/97/98 fetched, 65.8/92.8 MiB DL, 203.2/309.2 MiB copied] downloading 'https://cache.nixos.org/nar/1czm9fk0svacy4h6a3fzkpafi4f7a9gml36kk8cq1igaghbspg3k.nar.xz'
2017-07-30 Replace Unicode quotes in user-facing strings by ASCIIJörg Thalheim1-1/+1
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
2017-07-20 nix search: Ignore top-level eval errorsEelco Dolstra1-1/+5
$NIX_PATH may contain elements that don't evaluate to an attrset (like "nixos-config"), so ignore those.
2017-07-20 Add "nix search" commandEelco Dolstra1-8/+8
2017-07-14 Avoid a call to derivationFromPath()Eelco Dolstra1-26/+23
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-3/+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-07-04 Fix handling of expression installables with a / in themEelco Dolstra1-4/+4
2017-05-16 Improve progress indicatorEelco Dolstra1-3/+3
2017-05-02 Fix "nix ... --all"Eelco Dolstra1-11/+11
When "--all" is used, we should not fill in a default installable.
2017-04-25 StorePathCommands: Build installablesEelco Dolstra1-1/+10
So for instance "nix copy --to ... nixpkgs.hello" will build nixpkgs.hello first. It's debatable whether this is a good idea. It seems desirable for commands like "nix copy" but maybe not for commands like "nix path-info".
2017-04-25 Set default installableEelco Dolstra1-1/+7
Thus $ nix build -f foo.nix will build foo.nix. And $ nix build will build default.nix. However, this may not be a good idea because it's kind of inconsistent, given that "nix build foo" will build the "foo" attribute from the default installation source (i.e. the synthesis of $NIX_PATH), rather than ./default.nix. So I may revert this.
2017-04-25 Interpret any installable containing a slash as a pathEelco Dolstra1-11/+7
So "nix path-info ./result" now works.
2017-04-25 Move code aroundEelco Dolstra1-10/+10
2017-04-25 Restructure installables handling in the "nix" commandEelco Dolstra1-48/+185
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-08-23 nix build: Use Nix search pathEelco Dolstra1-5/+37
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-06-01 Make the store directory a member variable of StoreEelco Dolstra1-1/+1
2016-02-09 Add basic "nix build" commandEelco Dolstra1-0/+75
Currently only builds by attribute from <nixpkgs> or the specified file, e.g. "nix build hello".