gnu: minizinc: Add chuffed backend.
* gnu/packages/maths.scm (minizinc): Add backend. Change-Id: If178a7585d70eb4b6f3223f5f6b2f34d9d2f2257 Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
b53fac2278
commit
fcf6d663e3
1 changed files with 10 additions and 7 deletions
|
@ -4162,7 +4162,8 @@ book.")
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'install 'install-solver-configs
|
(add-after 'install 'install-solver-configs
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((gecode (assoc-ref inputs "gecode"))
|
(let ((chuffed (assoc-ref inputs "chuffed"))
|
||||||
|
(gecode (assoc-ref inputs "gecode"))
|
||||||
(pkgdatadir (string-append (assoc-ref outputs "out")
|
(pkgdatadir (string-append (assoc-ref outputs "out")
|
||||||
"/share/minizinc")))
|
"/share/minizinc")))
|
||||||
(call-with-output-file (string-append pkgdatadir
|
(call-with-output-file (string-append pkgdatadir
|
||||||
|
@ -4179,7 +4180,9 @@ book.")
|
||||||
port)
|
port)
|
||||||
(newline port)))
|
(newline port)))
|
||||||
|
|
||||||
(mkdir-p (string-append pkgdatadir "/solvers"))
|
(copy-recursively
|
||||||
|
(string-append chuffed "/share/minizinc/solvers")
|
||||||
|
(string-append pkgdatadir "/solvers"))
|
||||||
(call-with-output-file (string-append pkgdatadir
|
(call-with-output-file (string-append pkgdatadir
|
||||||
"/solvers/gecode.msc")
|
"/solvers/gecode.msc")
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
|
@ -4206,7 +4209,7 @@ book.")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bison flex))
|
(list bison flex))
|
||||||
(inputs
|
(inputs
|
||||||
(list cbc gecode zlib))
|
(list cbc chuffed gecode zlib))
|
||||||
(home-page "https://www.minizinc.org")
|
(home-page "https://www.minizinc.org")
|
||||||
(synopsis "High-level constraint modeling language")
|
(synopsis "High-level constraint modeling language")
|
||||||
(description "MiniZinc is a high-level modeling language for constraint
|
(description "MiniZinc is a high-level modeling language for constraint
|
||||||
|
|
Reference in a new issue