Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 145be2908586
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0c75dfb732d4
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Nov 9, 2020

  1. Copy the full SHA
    0c75dfb View commit details
Showing with 39 additions and 0 deletions.
  1. +37 −0 pkgs/applications/science/misc/convertall/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
37 changes: 37 additions & 0 deletions pkgs/applications/science/misc/convertall/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -26892,6 +26892,8 @@ in
inherit (pkgs.gnome2) gtkglext;
};

convertall = qt5.callPackage ../applications/science/misc/convertall { };

cytoscape = callPackage ../applications/science/misc/cytoscape {
jre = openjdk11;
};