From e3cf0b32dd5102329b4fc70972f4ddb35994d900 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 14 Sep 2024 21:49:45 +0200 Subject: [PATCH] assert release build archs --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index 39e5ac43b9e..32ef79e6e4b 100644 --- a/default.nix +++ b/default.nix @@ -6,6 +6,8 @@ let nixpkgs = import ./nix { inherit system; }; in +assert !officialRelease || nixpkgs.lib.asserts.assertOneOf "system" system [ "x86_64-linux" "x86_64-darwin" ]; + let releaseVersion = import nix/releaseVersion.nix { pkgs = nixpkgs; inherit officialRelease; }; in let stdenv = nixpkgs.stdenv; in