Prevent nix-build from accepting --packages

This commit is contained in:
Mat Marini 2020-07-29 20:50:06 -04:00
parent f63839bfa4
commit e4f6f8da77

View file

@ -192,7 +192,7 @@ static void _main(int argc, char * * argv)
else if (*arg == "--pure") pure = true;
else if (*arg == "--impure") pure = false;
else if (*arg == "--packages" || *arg == "-p")
else if (runEnv && (*arg == "--packages" || *arg == "-p"))
packages = true;
else if (inShebang && *arg == "-i") {