mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 08:02:21 +03:00
13 lines
244 B
Nix
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
|
|
|