5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ lib, mkDerivation, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, minizinc }:
|
|
|
|
mkDerivation rec {
|
|
pname = "minizinc-ide";
|
|
version = "2.5.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MiniZinc";
|
|
repo = "MiniZincIDE";
|
|
rev = version;
|
|
sha256 = "sha256-0U3KFRDam8psbCaEOcrwqzICAy1oBgo8SFEiR/PMqZk=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
buildInputs = [ qtbase qtwebengine qtwebkit ];
|
|
|
|
sourceRoot = "${src.name}/MiniZincIDE";
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${lib.makeBinPath [ minizinc ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.minizinc.org/";
|
|
description = "IDE for MiniZinc, a medium-level constraint modelling language";
|
|
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;
|
|
maintainers = [ maintainers.dtzWill ];
|
|
};
|
|
}
|