1
0
Fork 0
mirror of https://github.com/numtide/flake-utils.git synced 2025-03-13 12:18:42 +00:00

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 { };
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;
}
//
(