From 136dcc5f93936a795854bd9ddcbdb5e55f3708e6 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 18 Jul 2025 21:12:51 +0200 Subject: [PATCH] gams: move assert behind meta.license check This now errors with the "allow unfree" error first - and only when that's passed it asserts the specific `licenseFile` option. This ensures that CI will not produce an eval warning for the assert once we turn that on. --- pkgs/tools/misc/gams/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/misc/gams/default.nix b/pkgs/tools/misc/gams/default.nix index c69f98a9ca23..d27d3ddacd9d 100644 --- a/pkgs/tools/misc/gams/default.nix +++ b/pkgs/tools/misc/gams/default.nix @@ -8,8 +8,6 @@ optgamsFile ? null, }: -assert licenseFile != null; - stdenv.mkDerivation rec { version = "25.0.2"; pname = "gams"; @@ -23,6 +21,7 @@ stdenv.mkDerivation rec { dontBuild = true; installPhase = + assert licenseFile != null; '' mkdir -p "$out/bin" "$out/share/gams" cp -a * "$out/share/gams"