mkFlake: passthrough derivations

This commit is contained in:
xenia 2024-11-27 23:03:12 -05:00
parent 3d44369166
commit 80019480c4
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