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.
This commit is contained in:
parent
9255558c37
commit
136dcc5f93
@ -8,8 +8,6 @@
|
|||||||
optgamsFile ? null,
|
optgamsFile ? null,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert licenseFile != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "25.0.2";
|
version = "25.0.2";
|
||||||
pname = "gams";
|
pname = "gams";
|
||||||
@ -23,6 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
|
assert licenseFile != null;
|
||||||
''
|
''
|
||||||
mkdir -p "$out/bin" "$out/share/gams"
|
mkdir -p "$out/bin" "$out/share/gams"
|
||||||
cp -a * "$out/share/gams"
|
cp -a * "$out/share/gams"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user