Skip to content

Commit 136dcc5

Browse files
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.
1 parent 9255558 commit 136dcc5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkgs/tools/misc/gams/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
optgamsFile ? null,
99
}:
1010

11-
assert licenseFile != null;
12-
1311
stdenv.mkDerivation rec {
1412
version = "25.0.2";
1513
pname = "gams";
@@ -23,6 +21,7 @@ stdenv.mkDerivation rec {
2321
dontBuild = true;
2422

2523
installPhase =
24+
assert licenseFile != null;
2625
''
2726
mkdir -p "$out/bin" "$out/share/gams"
2827
cp -a * "$out/share/gams"

0 commit comments

Comments
 (0)