r-modules: fix eval

Not sure how this worked before. Now it at least evals.
This commit is contained in:
K900 2023-02-24 22:45:28 +03:00
parent fb31cca5ee
commit 3dccc7c365

View file

@ -154,8 +154,8 @@ let
overrideRDepends = overrides: old:
lib.mapAttrs (name: value:
(builtins.getAttr name old).overrideAttrs (attrs: {
nativeBuildInputs = attrs.nativeBuildInputs ++ value;
propagatedNativeBuildInputs = attrs.propagatedNativeBuildInputs ++ value;
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ value;
propagatedNativeBuildInputs = (attrs.propagatedNativeBuildInputs or []) ++ value;
})
) overrides;