Skip to content

Commit

Permalink
nix-build: Ignore --indirect
Browse files Browse the repository at this point in the history
Note that nix-build always creates indirect roots.

Fixes #1830.
  • Loading branch information
edolstra committed Feb 1, 2018
1 parent e7b23eb commit 19477e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix-build/nix-build.cc
Expand Up @@ -141,7 +141,7 @@ void mainWrapped(int argc, char * * argv)
else if (*arg == "--version")
printVersion(myName);

else if (*arg == "--add-drv-link")
else if (*arg == "--add-drv-link" || *arg == "--indirect")
; // obsolete

else if (*arg == "--no-out-link" || *arg == "--no-link")
Expand Down

1 comment on commit 19477e8

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/saving-expressions-versions-with-nix-shell/1525/2

Please sign in to comment.