From ce3e72e3bc83d8ecc2d98097b446e675d6c9533a Mon Sep 17 00:00:00 2001 From: zimbatm Date: Fri, 26 Feb 2021 09:50:35 +0100 Subject: [PATCH] simpleFlake: use only legacyPackages Since Flake resolves both namespaces, and legacyPackages is more forgiving, use that and not deal with the subtle differences. --- simpleFlake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simpleFlake.nix b/simpleFlake.nix index a806da1..c26bd08 100644 --- a/simpleFlake.nix +++ b/simpleFlake.nix @@ -52,10 +52,8 @@ let packages = pkgs.${name} or { }; in { + # Use the legacy packages since it's more forgiving. legacyPackages = packages; - - # Flake expects a flat attrset containing only derivations as values - packages = lib.flattenTree packages; } // (