mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
nix-shell -p: pass --arg values as nixpkgs params
This commit is contained in:
parent
2b67cb7b8c
commit
6eeb6f9c84
3 changed files with 7 additions and 3 deletions
|
@ -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 << "]; } \"\"";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue