Update assert
This commit is contained in:
parent
c3cd49a38c
commit
f2a598668b
|
@ -179,7 +179,18 @@
|
||||||
message = "MKK must be build with --impure";
|
message = "MKK must be build with --impure";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = (builtins.readFile "${mkkArg.configRootPath}/private/check-encryption") == "DECRYPTED";
|
assertion =
|
||||||
|
let
|
||||||
|
file = ../private/check-encryption;
|
||||||
|
resultFile = pkgs.runCommandLocal "check-encryption" { src = file; } ''
|
||||||
|
if [[ "$(< $src)" != "DECRYPTED" ]]; then
|
||||||
|
echo -n "no" >> $out;
|
||||||
|
else
|
||||||
|
echo -n "yes" >> $out;
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
(builtins.readFile resultFile == "yes");
|
||||||
message = "Need to decrypt MKK repo to build";
|
message = "Need to decrypt MKK repo to build";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -192,12 +203,17 @@
|
||||||
unstable = mkkArg.unstable;
|
unstable = mkkArg.unstable;
|
||||||
stable = mkkArg.stable;
|
stable = mkkArg.stable;
|
||||||
current = mkkArg.current;
|
current = mkkArg.current;
|
||||||
nixerusPkgs =
|
nixerusPkgs =
|
||||||
(import mkkArg.current.nixerus { inherit pkgs; }) //
|
(import mkkArg.current.nixerus { inherit pkgs; })
|
||||||
(if (pkgs.system == "x86_64-linux") then {
|
// (
|
||||||
i686Linux = import mkkArg.current.nixerus { pkgs = pkgs.pkgsi686Linux; };
|
if (pkgs.system == "x86_64-linux") then
|
||||||
} else {});
|
{
|
||||||
|
i686Linux = import mkkArg.current.nixerus { pkgs = pkgs.pkgsi686Linux; };
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ }
|
||||||
|
);
|
||||||
|
|
||||||
arg = mkkArg;
|
arg = mkkArg;
|
||||||
rootFlake = (builtins.getFlake mkkArg.configRootPath);
|
rootFlake = (builtins.getFlake mkkArg.configRootPath);
|
||||||
vars = lib.mkDefault { };
|
vars = lib.mkDefault { };
|
||||||
|
|
Loading…
Reference in New Issue