tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/nixpkgs: remove unused binding
figsoda
3 years ago
fd4f8656
ca6c2c21
+2
-7
1 changed file
expand all
collapse all
unified
split
nixos
modules
misc
nixpkgs.nix
+2
-7
nixos/modules/misc/nixpkgs.nix
···
23
23
optionalAttrs (lhs ? packageOverrides) {
24
24
packageOverrides = pkgs:
25
25
optCall lhs.packageOverrides pkgs //
26
26
-
optCall (attrByPath ["packageOverrides"] ({}) rhs) pkgs;
26
26
+
optCall (attrByPath [ "packageOverrides" ] { } rhs) pkgs;
27
27
} //
28
28
optionalAttrs (lhs ? perlPackageOverrides) {
29
29
perlPackageOverrides = pkgs:
30
30
optCall lhs.perlPackageOverrides pkgs //
31
31
-
optCall (attrByPath ["perlPackageOverrides"] ({}) rhs) pkgs;
31
31
+
optCall (attrByPath [ "perlPackageOverrides" ] { } rhs) pkgs;
32
32
};
33
33
34
34
configType = mkOptionType {
···
67
67
# Context for messages
68
68
hostPlatformLine = optionalString hasHostPlatform "${showOptionWithDefLocs opt.hostPlatform}";
69
69
buildPlatformLine = optionalString hasBuildPlatform "${showOptionWithDefLocs opt.buildPlatform}";
70
70
-
platformLines = optionalString hasPlatform ''
71
71
-
Your system configuration configures nixpkgs with platform parameters:
72
72
-
${hostPlatformLine
73
73
-
}${buildPlatformLine
74
74
-
}'';
75
70
76
71
legacyOptionsDefined =
77
72
optional (opt.localSystem.highestPrio < (mkDefault {}).priority) opt.system