linux-hardened: specify system when calling nix-instantiate in update script

This allows the script to run on non-Linux systems.
This commit is contained in:
Winter
2022-08-11 13:49:41 -04:00
committed by Sandro Jäckel
parent 3b873dc867
commit 23218d872e
@@ -201,7 +201,7 @@ for filename in os.listdir(NIXPKGS_KERNEL_PATH):
(callPackage {NIXPKGS_KERNEL_PATH / filename} {{}}).version
"""
kernel_version_json = run(
"nix-instantiate", "--eval", "--json", "--expr", nix_version_expr,
"nix-instantiate", "--eval", "--system", "x86_64-linux", "--json", "--expr", nix_version_expr,
).stdout
kernel_version = parse_version(json.loads(kernel_version_json))
if kernel_version < MIN_KERNEL_VERSION: