1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00
digga/ufr-polyfills/eachSystem.nix
2022-02-23 15:23:14 -08:00

13 lines
258 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