parameterize the system attribute
Allow to instantiate flake-compat with another system
This commit is contained in:
parent
123f9a83cb
commit
9ef308133d
|
@ -5,7 +5,7 @@
|
|||
# containing 'defaultNix' (to be used in 'default.nix'), 'shellNix'
|
||||
# (to be used in 'shell.nix').
|
||||
|
||||
{ src }:
|
||||
{ src, system ? builtins.currentSystem or "unknown-system" }:
|
||||
|
||||
let
|
||||
|
||||
|
@ -69,8 +69,6 @@ let
|
|||
|
||||
result = callFlake src' (lockFile.inputs);
|
||||
|
||||
system = builtins.currentSystem or "unknown-system";
|
||||
|
||||
in
|
||||
assert lockFile.version == 4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue