2023-06-01 13:07:14 +00:00
|
|
|
# These tests show that the minizinc build is capable of running the
|
|
|
|
# examples in the official tutorial:
|
|
|
|
# https://www.minizinc.org/doc-2.7.3/en/modelling.html
|
|
|
|
|
|
|
|
{ stdenv, minizinc }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "minizinc-simple-test";
|
2023-06-01 19:10:26 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ minizinc ];
|
|
|
|
|
2023-06-01 13:07:14 +00:00
|
|
|
dontInstall = true;
|
2023-06-01 19:10:26 +00:00
|
|
|
|
2023-06-01 13:07:14 +00:00
|
|
|
buildCommand = ''
|
2023-06-01 19:10:26 +00:00
|
|
|
minizinc --solver gecode ${./aust.mzn}
|
|
|
|
minizinc --solver cbc ${./loan.mzn} ${./loan1.dzn}
|
2023-06-01 13:07:14 +00:00
|
|
|
touch $out
|
|
|
|
'';
|
2023-06-01 19:10:26 +00:00
|
|
|
|
|
|
|
meta.timeout = 10;
|
2023-06-01 13:07:14 +00:00
|
|
|
}
|