3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/minizinc/ide.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, makeWrapper, minizinc }:
let
2019-12-08 18:31:27 +00:00
version = "2.3.2";
in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "minizinc-ide";
inherit version;
nativeBuildInputs = [ qmake makeWrapper ];
buildInputs = [ qtbase qtwebengine qtwebkit ];
src = fetchFromGitHub {
owner = "MiniZinc";
repo = "MiniZincIDE";
rev = version;
2019-12-08 18:31:27 +00:00
sha256 = "0ym45fjfvxxrxp79sa5psrwg2p33l5h8qncx6agj9brml7d873c4";
};
sourceRoot = "source/MiniZincIDE";
enableParallelBuilding = true;
postInstall = ''
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${stdenv.lib.makeBinPath [ minizinc ]}
'';
meta = with stdenv.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 ];
};
}