about summary refs log tree commit diff
path: root/src/nix/installables.cc
AgeCommit message (Collapse)AuthorFilesLines
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".