about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/nix-build.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index 5745a1e06e48..5e988cc411f8 100755
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -217,6 +217,8 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
     }
 }
 
+die "$0: ‘-p’ and ‘-E’ are mutually exclusive\n" if $packages && $fromArgs;
+
 if ($packages) {
     push @instArgs, "--expr";
     @exprs = (