2018-12-01 02:59:55 +01: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 19:14:43 +01:00
|
|
|
rev = version;
|
2018-12-01 02:59:55 +01:00
|
|
|
sha256 = "1hanq7c6li59awlwghgvpd8w93a7zb6iw7p4062nphnbd1dmg92f";
|
|
|
|
};
|
|
|
|
|
2019-01-05 20:35:10 +01:00
|
|
|
sourceRoot = "source/MiniZincIDE";
|
2018-12-01 02:59:55 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${stdenv.lib.makeBinPath [ minizinc ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-02 19:14:43 +01:00
|
|
|
homepage = https://www.minizinc.org/;
|
2019-01-05 20:35:10 +01:00
|
|
|
description = "IDE for MiniZinc, a medium-level constraint modelling language";
|
2018-12-01 02:59:55 +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.linux;
|
2018-12-02 19:14:43 +01:00
|
|
|
maintainers = [ maintainers.dtzWill ];
|
2018-12-01 02:59:55 +01:00
|
|
|
};
|
|
|
|
}
|