Pass inputs to release expressions using -I
This means that you can now write (for instance) with <nixpkgs> { ... }; in release.nix, rather than { nixpkgs } : with nixpkgs { ... };
This commit is contained in:
@ -604,6 +604,9 @@ sub inputsToArgs {
|
||||
my @res = ();
|
||||
|
||||
foreach my $input (keys %{$inputInfo}) {
|
||||
push @res, "-I", "$input=$inputInfo->{$input}->[0]->{storePath}"
|
||||
if scalar @{$inputInfo->{$input}} == 1
|
||||
&& defined $inputInfo->{$input}->[0]->{storePath};
|
||||
foreach my $alt (@{$inputInfo->{$input}}) {
|
||||
given ($alt->{type}) {
|
||||
when ("string") {
|
||||
|
Reference in New Issue
Block a user