mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 16:11:51 +03:00
13 lines
258 B
Nix
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
|
|
|