simpleFlake: use only legacyPackages (#23)

Since Flake resolves both namespaces, and legacyPackages is more
forgiving, use that and not deal with the subtle differences.
This commit is contained in:
Jonas Chevalier 2021-02-28 11:55:58 +00:00 committed by GitHub
parent 3982c9903e
commit 5466c5bbec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,10 +52,8 @@ let
packages = pkgs.${name} or { }; packages = pkgs.${name} or { };
in in
{ {
# Use the legacy packages since it's more forgiving.
legacyPackages = packages; legacyPackages = packages;
# Flake expects a flat attrset containing only derivations as values
packages = lib.flattenTree packages;
} }
// //
( (