mirror of
https://github.com/NixOS/nix
synced 2025-07-09 03:43:54 +02:00
Add a test for ‘nix-env --set-flag active ...’
This commit is contained in:
parent
5ad89398d1
commit
2d5e8e267b
3 changed files with 11 additions and 3 deletions
|
@ -13,7 +13,7 @@ derivation {
|
|||
# !!! grmbl, need structured data for passing this in a clean way.
|
||||
derivations =
|
||||
map (d:
|
||||
[ (if d.meta.active or true then "1" else "0")
|
||||
[ (d.meta.active or "true")
|
||||
(d.meta.priority or 5)
|
||||
(builtins.length d.outputs)
|
||||
] ++ map (output: builtins.getAttr output d) d.outputs)
|
||||
|
|
|
@ -134,7 +134,7 @@ while (scalar @derivations) {
|
|||
for (my $n = 0; $n < $outputs; $n++) {
|
||||
my $path = shift @derivations;
|
||||
$pkgs{$path} =
|
||||
{ active => int($active)
|
||||
{ active => $active ne "false"
|
||||
, priority => int($priority) };
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue