3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/minizinc/default.nix

35 lines
936 B
Nix
Raw Normal View History

2021-02-09 00:03:27 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, flex, bison }:
2016-09-06 05:16:42 +01:00
let
2021-02-09 00:03:27 +00:00
version = "2.5.3";
2016-09-06 05:16:42 +01:00
in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "minizinc";
inherit version;
2016-09-06 05:16:42 +01:00
nativeBuildInputs = [ cmake flex bison ];
2016-09-06 05:16:42 +01:00
src = fetchFromGitHub {
owner = "MiniZinc";
repo = "libminizinc";
rev = version;
2021-02-09 00:03:27 +00:00
sha256 = "1kc65sxkc64pr560qaaznc44jnlvq7pbpzwijad410lpcnna5byg";
2016-09-06 05:16:42 +01:00
};
meta = with lib; {
homepage = "https://www.minizinc.org/";
description = "A medium-level constraint modelling language";
2016-09-06 05:16:42 +01: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;
platforms = platforms.unix;
2016-09-06 05:16:42 +01:00
maintainers = [ maintainers.sheenobu ];
};
}