From 5466c5bbece17adaab2d82fae80b46e807611bf3 Mon Sep 17 00:00:00 2001 From: Jonas Chevalier Date: Sun, 28 Feb 2021 11:55:58 +0000 Subject: [PATCH] simpleFlake: use only legacyPackages (#23) 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; } // (