depot/third_party/nixpkgs/pkgs/development/tools/minizinc/simple-test/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

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;
}