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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user