From 80019480c42a8e97b4289fbdff628d8a4de9f1a5 Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 27 Nov 2024 23:03:12 -0500 Subject: [PATCH] mkFlake: passthrough derivations --- flake.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 718d8cd..7ef6be6 100644 --- a/flake.nix +++ b/flake.nix @@ -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