2016-09-06 04:16:42 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, flex, bison }:
|
|
|
|
let
|
2018-11-23 23:51:24 +00:00
|
|
|
version = "2.2.3";
|
2016-09-06 04:16:42 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "minizinc";
|
|
|
|
inherit version;
|
2016-09-06 04:16:42 +00:00
|
|
|
|
|
|
|
buildInputs = [ cmake flex bison ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "libminizinc";
|
2018-11-23 23:51:24 +00:00
|
|
|
rev = "3d66971a0cad6edbe796f4dd940229d38e5bfe3d"; # tags on the repo are disappearing: See https://github.com/MiniZinc/libminizinc/issues/257
|
|
|
|
sha256 = "1q31y9131aj2lsm34srm8i1s0271qcaaknzvym3r8awynm14saq5";
|
2016-09-06 04:16:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.minizinc.org/";
|
2016-09-06 04:16:42 +00:00
|
|
|
description = "MiniZinc is a medium-level constraint modelling language.";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
MiniZinc is a medium-level constraint modelling
|
|
|
|
language. It is high-level enough to express most
|
|
|
|
constraint problems easily, but low-level enough
|
|
|
|
that it can be mapped onto existing solvers easily and consistently.
|
|
|
|
It is a subset of the higher-level language Zinc.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.sheenobu ];
|
|
|
|
};
|
|
|
|
}
|