2021-02-13 14:23:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, flex, bison }:
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "minizinc";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "2.5.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake flex bison ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "libminizinc";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-9z2E6KqOys9UUXlXWB4eDhg34kS3PhUB1Dd1F6iGYoE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.minizinc.org/";
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "A medium-level constraint modelling language";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
2020-10-07 09:15:18 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.sheenobu ];
|
|
|
|
};
|
|
|
|
}
|