nix-shell -p: pass --arg values as nixpkgs params
This commit is contained in:
@@ -269,7 +269,7 @@ static void main_nix_build(int argc, char * * argv)
|
||||
|
||||
if (packages) {
|
||||
std::ostringstream joined;
|
||||
joined << "with import <nixpkgs> { }; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ ";
|
||||
joined << "{...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) \"shell\" { buildInputs = [ ";
|
||||
for (const auto & i : left)
|
||||
joined << '(' << i << ") ";
|
||||
joined << "]; } \"\"";
|
||||
|
||||
Reference in New Issue
Block a user