9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
21 lines
464 B
Nix
21 lines
464 B
Nix
# 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";
|
|
|
|
nativeBuildInputs = [ minizinc ];
|
|
|
|
dontInstall = true;
|
|
|
|
buildCommand = ''
|
|
minizinc --solver gecode ${./aust.mzn}
|
|
minizinc --solver cbc ${./loan.mzn} ${./loan1.dzn}
|
|
touch $out
|
|
'';
|
|
|
|
meta.timeout = 10;
|
|
}
|