mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Fix getSystem
This commit is contained in:
parent
fd84881e00
commit
0f58fecd5f
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ in
|
||||||
perSystem = system: { _module.args.system = system; };
|
perSystem = system: { _module.args.system = system; };
|
||||||
allSystems = genAttrs config.systems config.perSystem;
|
allSystems = genAttrs config.systems config.perSystem;
|
||||||
# TODO: Sub-optimal error message. Get Nix to support a memoization primop, or get Nix Flakes to support systems properly or get Nix Flakes to add a name to flakes.
|
# TODO: Sub-optimal error message. Get Nix to support a memoization primop, or get Nix Flakes to support systems properly or get Nix Flakes to add a name to flakes.
|
||||||
_module.args.getSystem = system: config.allSystems.${system} or builtins.trace "using non-memoized system ${system}" config.perSystem system;
|
_module.args.getSystem = system: config.allSystems.${system} or (builtins.trace "using non-memoized system ${system}" config.perSystem system);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue