mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
minizincide: init at 2.2.3
* wrap so minizinc on PATH (to ensure it's avail/found)
This commit is contained in:
parent
d97f3cb647
commit
0e4c444cfe
42
pkgs/development/tools/minizinc/ide.nix
Normal file
42
pkgs/development/tools/minizinc/ide.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ stdenv, fetchFromGitHub, qtbase, qtwebengine, qtwebkit, qmake, makeWrapper, minizinc }:
|
||||
let
|
||||
version = "2.2.3";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "minizinc-ide-${version}";
|
||||
|
||||
nativeBuildInputs = [ qmake makeWrapper ];
|
||||
buildInputs = [ qtbase qtwebengine qtwebkit ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MiniZinc";
|
||||
repo = "MiniZincIDE";
|
||||
rev = version; # XXX chance it//revisit: "3d66971a0cad6edbe797f4dd940229d38e5bfe3d"; # tags on the repo are disappearing: See https://github.com/MiniZinc/libminizinc/issues/257
|
||||
sha256 = "1hanq7c6li59awlwghgvpd8w93a7zb6iw7p4062nphnbd1dmg92f";
|
||||
};
|
||||
|
||||
postUnpack = ''export sourceRoot="$sourceRoot/MiniZincIDE"'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/MiniZincIDE --prefix PATH ":" ${stdenv.lib.makeBinPath [ minizinc ]}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://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.sheenobu ];
|
||||
};
|
||||
}
|
@ -8725,6 +8725,7 @@ with pkgs;
|
||||
minify = callPackage ../development/web/minify { };
|
||||
|
||||
minizinc = callPackage ../development/tools/minizinc { };
|
||||
minizincide = qt5.callPackage ../development/tools/minizinc/ide.nix { };
|
||||
|
||||
mk = callPackage ../development/tools/build-managers/mk { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user