1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 08:02:21 +03:00
digga/ufr-polyfills/eachSystem.nix
David Arnold 7587f4700e fmt
2022-02-23 15:23:14 -08:00

13 lines
244 B
Nix

# Builds a map from value to <system>=value for each system.
# .. adopted from: https://github.com/numtide/flake-utils
#
systems: f:
let
op = attrs: system:
attrs // {
${system} = f system;
};
in
builtins.foldl' op { } systems