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:
parent
3982c9903e
commit
5466c5bbec
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
//
|
||||
(
|
||||
|
|
Loading…
Add table
Reference in a new issue