mirror of
https://gitlab.com/rensa-nix/core.git
synced 2025-12-11 22:00:09 +01:00
feat(builder): default to systems from inputs if exists
This commit is contained in:
parent
c827a07997
commit
9ea903dde6
1 changed files with 17 additions and 7 deletions
|
|
@ -11,13 +11,23 @@
|
|||
cellsFrom,
|
||||
cellBlocks,
|
||||
transformInputs ? system: i: i,
|
||||
systems ? [
|
||||
...
|
||||
} @ args: let
|
||||
# use passed systems if any, otherwise check if inputs contains systems and
|
||||
# import them, otherwise use defaults
|
||||
systems =
|
||||
args.systems or
|
||||
(
|
||||
if builtins.hasAttr "systems" inputs
|
||||
then import inputs.systems
|
||||
else [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
],
|
||||
}: let
|
||||
]
|
||||
);
|
||||
|
||||
cells = res.output;
|
||||
|
||||
loadOutputFor = system: let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue