|
| 1 | +{ |
| 2 | + lib, |
| 3 | + stdenv, |
| 4 | + fetchFromGitHub, |
| 5 | + cmake, |
| 6 | + bison, |
| 7 | + flex, |
| 8 | + gmp, |
| 9 | + zlib, |
| 10 | +}: |
| 11 | + |
| 12 | +stdenv.mkDerivation rec { |
| 13 | + pname = "scipopt-zimpl"; |
| 14 | + version = "362"; |
| 15 | + |
| 16 | + # To correlate scipVersion and version, check: https://scipopt.org/#news |
| 17 | + scipVersion = "9.2.1"; |
| 18 | + |
| 19 | + src = fetchFromGitHub { |
| 20 | + owner = "scipopt"; |
| 21 | + repo = "zimpl"; |
| 22 | + tag = "v${version}"; |
| 23 | + sha256 = "juqAwzqBArsFXmz7L7RQaE78EhQdP5P51wQFlCoo7/o="; |
| 24 | + }; |
| 25 | + |
| 26 | + postPatch = '' |
| 27 | + chmod +x check/check.sh |
| 28 | + ''; |
| 29 | + |
| 30 | + nativeBuildInputs = [ |
| 31 | + cmake |
| 32 | + bison |
| 33 | + flex |
| 34 | + ]; |
| 35 | + |
| 36 | + buildInputs = [ |
| 37 | + gmp |
| 38 | + zlib |
| 39 | + ]; |
| 40 | + doCheck = true; |
| 41 | + |
| 42 | + checkPhase = '' |
| 43 | + runHook preCheck |
| 44 | + pushd ../check |
| 45 | + ./check.sh ../build/bin/zimpl |
| 46 | + popd |
| 47 | + runHook postCheck |
| 48 | + ''; |
| 49 | + meta = { |
| 50 | + maintainers = with lib.maintainers; [ fettgoenner ]; |
| 51 | + changelog = "https://scipopt.org/doc-${scipVersion}/html/RN${lib.versions.major scipVersion}.php"; |
| 52 | + description = "Zuse Institut Mathematical Programming Language"; |
| 53 | + longDescription = '' |
| 54 | + ZIMPL is a little language to translate the mathematical model of a |
| 55 | + problem into a linear or (mixed-)integer mathematical program |
| 56 | + expressed in .lp or .mps file format which can be read by a LP or MIP |
| 57 | + solver. |
| 58 | +
|
| 59 | + If you use Zimpl for research and publish results, the best way |
| 60 | + to refer to Zimpl is to cite my Ph.d. thesis: |
| 61 | +
|
| 62 | + @PHDTHESIS{Koch2004, |
| 63 | + author = "Thorsten Koch", |
| 64 | + title = "Rapid Mathematical Programming", |
| 65 | + year = "2004", |
| 66 | + school = "Technische {Universit\"at} Berlin", |
| 67 | + url = "http://www.zib.de/Publications/abstracts/ZR-04-58/", |
| 68 | + note = "ZIB-Report 04-58", |
| 69 | + } |
| 70 | + ''; |
| 71 | + license = lib.licenses.lgpl3Plus; |
| 72 | + homepage = "https://zimpl.zib.de"; |
| 73 | + mainProgram = "zimpl"; |
| 74 | + }; |
| 75 | +} |
0 commit comments