2021-02-08 16:03:27 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, flex, bison }:
|
2016-09-05 21:16:42 -07:00
|
|
|
let
|
2021-03-22 05:14:15 -07:00
|
|
|
version = "2.5.5";
|
2016-09-05 21:16:42 -07:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "minizinc";
|
|
|
|
inherit version;
|
2016-09-05 21:16:42 -07:00
|
|
|
|
2020-12-30 23:48:55 -08:00
|
|
|
nativeBuildInputs = [ cmake flex bison ];
|
2016-09-05 21:16:42 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "libminizinc";
|
2020-08-09 02:10:01 -07:00
|
|
|
rev = version;
|
2021-03-22 05:14:15 -07:00
|
|
|
sha256 = "sha256-9z2E6KqOys9UUXlXWB4eDhg34kS3PhUB1Dd1F6iGYoE=";
|
2016-09-05 21:16:42 -07:00
|
|
|
};
|
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.minizinc.org/";
|
2020-10-25 21:08:40 -07:00
|
|
|
description = "A medium-level constraint modelling language";
|
2016-09-05 21:16:42 -07: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-09-28 13:24:49 -07:00
|
|
|
platforms = platforms.unix;
|
2016-09-05 21:16:42 -07:00
|
|
|
maintainers = [ maintainers.sheenobu ];
|
|
|
|
};
|
|
|
|
}
|