kchmviewer: init at 8.0

+50
+48
pkgs/applications/misc/kchmviewer/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, qmake, wrapQtAppsHook, chmlib, libzip, qtwebengine }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "kchmviewer"; 5 + version = "8.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "gyunaev"; 9 + repo = pname; 10 + rev = "RELEASE_${lib.replaceStrings [ "." ] [ "_" ] version}"; 11 + sha256 = "sha256-YNpiBf6AFBCRbAZRPODvqGbQQedJJJrZFQIQyzIeBlw="; 12 + }; 13 + 14 + patches = [ 15 + # remove unused webkit 16 + (fetchpatch { 17 + url = "https://github.com/gyunaev/kchmviewer/commit/a4a3984465cb635822953350c571950ae726b539.patch"; 18 + sha256 = "sha256-nHW18a4SrTG4fETJmKS4ojHXwnX1d1uN1m4H0GIuI28="; 19 + }) 20 + # QtWebengine fixes 21 + (fetchpatch { 22 + url = "https://github.com/gyunaev/kchmviewer/commit/9ac73e7ad15de08aab6b1198115be2eb44da7afe.patch"; 23 + sha256 = "sha256-qg2ytqA2On7jg19WZmHIOU7vLQI2hoyqItySLEA64SY="; 24 + }) 25 + (fetchpatch { 26 + url = "https://github.com/gyunaev/kchmviewer/commit/99a6d94bdfce9c4578cce82707e71863a71d1453.patch"; 27 + sha256 = "sha256-o8JkaMmcJObmMt+o/6ooCAPCi+yRAWDAgxV+tR5eHfY="; 28 + }) 29 + ]; 30 + 31 + buildInputs = [ chmlib libzip qtwebengine ]; 32 + 33 + nativeBuildInputs = [ qmake wrapQtAppsHook ]; 34 + 35 + postInstall = '' 36 + install -Dm755 bin/kchmviewer -t $out/bin 37 + install -Dm644 packages/kchmviewer.png -t $out/share/pixmaps 38 + install -Dm644 packages/kchmviewer.desktop -t $out/share/applications 39 + ''; 40 + 41 + meta = with lib; { 42 + description = "CHM (Winhelp) files viewer"; 43 + homepage = "http://www.ulduzsoft.com/linux/kchmviewer/"; 44 + license = licenses.gpl3Plus; 45 + maintainers = with maintainers; [ sikmir ]; 46 + platforms = platforms.linux; 47 + }; 48 + }
+2
pkgs/top-level/all-packages.nix
··· 26639 26639 26640 26640 kapow = libsForQt5.callPackage ../applications/misc/kapow { }; 26641 26641 26642 + kchmviewer = libsForQt5.callPackage ../applications/misc/kchmviewer { }; 26643 + 26642 26644 kappanhang = callPackage ../applications/radio/kappanhang { }; 26643 26645 26644 26646 okteta = libsForQt5.callPackage ../applications/editors/okteta { };