forked from mirrors/nixpkgs
treewide: treewide: use lib.optionalAttrs instead of 'then {}'
add missing parentheses.
This commit is contained in:
parent
8fcb368580
commit
ae35046326
|
@ -4,7 +4,7 @@ let
|
|||
skipBuildPhase = x: {
|
||||
overrides = y: ((x.overrides y) // { buildPhase = "true"; });
|
||||
};
|
||||
multiOverride = l: x: pkgs.lib.optionalAttrs (l != []) ((builtins.head l) x) // (multiOverride (builtins.tail l) x);
|
||||
multiOverride = l: x: pkgs.lib.optionalAttrs (l != []) (((builtins.head l) x) // (multiOverride (builtins.tail l) x));
|
||||
lispName = (clwrapper.lisp.pname or (builtins.parseDrvName clwrapper.lisp.name).name);
|
||||
ifLispIn = l: f: if (pkgs.lib.elem lispName l) then f else (x: {});
|
||||
ifLispNotIn = l: f: if ! (pkgs.lib.elem lispName l) then f else (x: {});
|
||||
|
|
Loading…
Reference in a new issue