nixpkgs/pkgs/development/tools/minizinc/ide.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.2 KiB
Nix
Raw Normal View History

2021-02-09 00:03:27 +00:00
{ lib, mkDerivation, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, minizinc }:
2023-06-01 19:10:26 +00:00
2021-07-17 17:56:23 +00:00
mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "minizinc-ide";
2022-01-01 21:54:39 +00:00
version = "2.5.5";
src = fetchFromGitHub {
owner = "MiniZinc";
repo = "MiniZincIDE";
rev = version;
2022-01-01 21:54:39 +00:00
sha256 = "sha256-0U3KFRDam8psbCaEOcrwqzICAy1oBgo8SFEiR/PMqZk=";
2021-02-09 00:03:27 +00:00
fetchSubmodules = true;
};
2023-06-01 19:10:26 +00:00
nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase qtwebengine qtwebkit ];
sourceRoot = "source/MiniZincIDE";
dontWrapQtApps = true;
postInstall = ''
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${lib.makeBinPath [ minizinc ]}
'';
meta = with lib; {
2020-04-06 06:07:50 +00:00
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 ];
};
}