mirror of
https://github.com/divnix/digga.git
synced 2024-12-24 00:21:47 +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
|
||
|
|