mkFlake: passthrough derivations

This commit is contained in:
xenia 2024-11-27 23:03:12 -05:00
parent 00b235cc12
commit fdcb5d11f8
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@
let
rewritePerSystem = sectionDef: (forAllSystems (system:
builtins.mapAttrs (name: value:
self.legacyPackages.${system}.callPackage value {}
if final.isDerivation value then
value
else
self.legacyPackages.${system}.callPackage value {}
) sectionDef
));
in