2018-12-01 02:59:55 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, makeWrapper, minizinc }:
|
|
|
|
let
|
2019-08-05 01:19:03 +02:00
|
|
|
version = "2.3.1";
|
2018-12-01 02:59:55 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "minizinc-ide";
|
|
|
|
inherit version;
|
2018-12-01 02:59:55 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake makeWrapper ];
|
|
|
|
buildInputs = [ qtbase qtwebengine qtwebkit ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MiniZinc";
|
|
|
|
repo = "MiniZincIDE";
|
2018-12-02 19:14:43 +01:00
|
|
|
rev = version;
|
2019-08-05 01:19:03 +02:00
|
|
|
sha256 = "0w9p5j2i7q4khmxyk2lr7a3qb2kd6ff1hfssxhgpm7zgzixm2300";
|
2018-12-01 02:59:55 +01:00
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|