Permalink
Browse files

nix-build: Ignore --indirect

Note that nix-build always creates indirect roots.

Fixes #1830.
  • Loading branch information...
edolstra committed Feb 1, 2018
1 parent e7b23eb commit 19477e8815a7c9b91c82278ec0e22957c97bec16
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nix-build/nix-build.cc
@@ -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")

1 comment on commit 19477e8

@nixos-discourse

This comment has been minimized.

nixos-discourse commented on 19477e8 Nov 26, 2018

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.