2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, makeWrapper, minizinc }:
|
2018-12-01 01:59:55 +00:00
|
|
|
let
|
2020-04-06 07:07:50 +01:00
|
|
|
version = "2.4.3";
|
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;
|
2020-04-06 07:07:50 +01:00
|
|
|
sha256 = "0dfqh73rnp00336pyr1hlgl1wb4m2kh28zvdkamjgml60gmg6wdr";
|
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;
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
2018-12-01 01:59:55 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2021-01-23 12:26:19 +00:00
|
|
|
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${lib.makeBinPath [ minizinc ]}
|
2018-12-01 01:59:55 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-06 07:07:50 +01: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
|
|
|
};
|
|
|
|
}
|