2016-09-06 06:16:42 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, flex, bison }:
|
|
|
|
let
|
2018-02-27 15:08:25 +01:00
|
|
|
version = "2.1.7";
|
2016-09-06 06:16:42 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "minizinc-${version}";
|
|
|
|
|
|
|
|
buildInputs = [ cmake flex bison ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "${version}";
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "libminizinc";
|
2018-02-27 15:08:25 +01:00
|
|
|
sha256 = "05rifsgzfaalv5ymv59sjcvhr6i1byzbmq5p36hj3hpi5f929kip";
|
2016-09-06 06:16:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# meta is all the information about the package..
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.minizinc.org/;
|
2016-09-06 06:16:42 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|