Update default.nix (#42)

This commit is contained in:
Andy Richardson 2022-01-20 17:46:32 +00:00 committed by GitHub
parent 3f197dc759
commit 846b2ae0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,9 @@ let
in
builtins.foldl' op { } systems
;
# Builds a map from <attr>=value to <system>.<attr> = value.
eachSystemMap = systems: f: builtins.listToAttrs (builtins.map (system: { name = system; value = f system; }) systems);
# Nix flakes insists on having a flat attribute set of derivations in
# various places like the `packages` and `checks` attributes.