nixpkgs/pkgs/development/tools/minizinc/simple-test/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
464 B
Nix
Raw Normal View History

# 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 ];
dontInstall = true;
2023-06-01 19:10:26 +00:00
buildCommand = ''
2023-06-01 19:10:26 +00:00
minizinc --solver gecode ${./aust.mzn}
minizinc --solver cbc ${./loan.mzn} ${./loan1.dzn}
touch $out
'';
2023-06-01 19:10:26 +00:00
meta.timeout = 10;
}