2018-12-01 01:59:55 +00:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, makeWrapper, minizinc }:
|
|
|
|
let
|
2019-12-08 18:31:27 +00:00
|
|
|
version = "2.3.2";
|
2018-12-01 01:59:55 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "minizinc-ide";
|
|
|
|
inherit version;
|
2018-12-01 01:59:55 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake makeWrapper ];
|
|
|
|
buildInputs = [ qtbase qtwebengine qtwebkit ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "MiniZincIDE";
|
2018-12-02 18:14:43 +00:00
|
|
|
rev = version;
|
2019-12-08 18:31:27 +00:00
|
|
|
sha256 = "0ym45fjfvxxrxp79sa5psrwg2p33l5h8qncx6agj9brml7d873c4";
|
2018-12-01 01:59:55 +00:00
|
|
|
};
|
|
|
|
|
2019-01-05 19:35:10 +00:00
|
|
|
sourceRoot = "source/MiniZincIDE";
|
2018-12-01 01:59:55 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${stdenv.lib.makeBinPath [ minizinc ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-02 18:14:43 +00:00
|
|
|
homepage = https://www.minizinc.org/;
|
2019-01-05 19:35:10 +00:00
|
|
|
description = "IDE for MiniZinc, a medium-level constraint modelling language";
|
2018-12-01 01:59:55 +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;
|
|
|
|
platforms = platforms.linux;
|
2018-12-02 18:14:43 +00:00
|
|
|
maintainers = [ maintainers.dtzWill ];
|
2018-12-01 01:59:55 +00:00
|
|
|
};
|
|
|
|
}
|