2018-12-01 01:59:55 +00:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, makeWrapper, minizinc }:
|
|
|
|
let
|
|
|
|
version = "2.2.3";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "minizinc-ide-${version}";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake makeWrapper ];
|
|
|
|
buildInputs = [ qtbase qtwebengine qtwebkit ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "MiniZincIDE";
|
2018-12-02 18:14:43 +00:00
|
|
|
rev = version;
|
2018-12-01 01:59:55 +00:00
|
|
|
sha256 = "1hanq7c6li59awlwghgvpd8w93a7zb6iw7p4062nphnbd1dmg92f";
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|