parameterize the system attribute

Allow to instantiate flake-compat with another system
This commit is contained in:
Jonas Chevalier 2020-03-28 18:32:55 +01:00
parent 123f9a83cb
commit 9ef308133d
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -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;