mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
convertall: init at 0.8.0 (#103108)
This commit is contained in:
parent
145be29085
commit
0c75dfb732
37
pkgs/applications/science/misc/convertall/default.nix
Normal file
37
pkgs/applications/science/misc/convertall/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ stdenv, fetchFromGitHub, python3, wrapQtAppsHook }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (python3.pkgs) wrapPython pyqt5;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
pname = "convertall";
|
||||||
|
version = "0.8.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "doug-101";
|
||||||
|
repo = "ConvertAll";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "02xxasgbjbivsbhyfpn3cpv52lscdx5kc95s6ns1dvnmdg0fpng0";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ python3 wrapPython wrapQtAppsHook ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pyqt5 ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
python3 install.py -p $out -x
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
buildPythonPath $out
|
||||||
|
patchPythonScript $out/share/convertall/convertall.py
|
||||||
|
makeQtWrapper $out/share/convertall/convertall.py $out/bin/convertall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://convertall.bellz.org/";
|
||||||
|
description = "Graphical unit converter";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ orivej ];
|
||||||
|
platforms = pyqt5.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
|
@ -26892,6 +26892,8 @@ in
|
||||||
inherit (pkgs.gnome2) gtkglext;
|
inherit (pkgs.gnome2) gtkglext;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
convertall = qt5.callPackage ../applications/science/misc/convertall { };
|
||||||
|
|
||||||
cytoscape = callPackage ../applications/science/misc/cytoscape {
|
cytoscape = callPackage ../applications/science/misc/cytoscape {
|
||||||
jre = openjdk11;
|
jre = openjdk11;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue