Skip to content

Commit 1257535

Browse files
committed
Remove unused binding
1 parent 7b3b449 commit 1257535

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

modules/install-plan/planned.nix

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
# Mark everthing in the install-plan as "planned"
22
{getComponents}:
33
{config, lib, ...}: {
4-
packages = lib.listToAttrs (map (p:
5-
let components =
6-
if p ? component-name
7-
then { ${p.component-name} = { inherit (p) depends exe-depends; }; }
8-
else p.components or {};
9-
in {
10-
name = p.id;
11-
value.components = lib.mapAttrs (type: x:
12-
if type == "library" || type == "setup"
13-
then { planned = lib.mkOverride 900 true; }
14-
else
15-
lib.mapAttrs (_: _: {
16-
planned = lib.mkOverride 900 true;
17-
}) x
18-
) (getComponents null {} p);
19-
}) config.plan-json.install-plan);
4+
packages = lib.listToAttrs (map (p: {
5+
name = p.id;
6+
value.components = lib.mapAttrs (type: x:
7+
if type == "library" || type == "setup"
8+
then { planned = lib.mkOverride 900 true; }
9+
else
10+
lib.mapAttrs (_: _: {
11+
planned = lib.mkOverride 900 true;
12+
}) x
13+
) (getComponents null {} p);
14+
}) config.plan-json.install-plan);
2015
}

0 commit comments

Comments
 (0)