Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 63 lines 1.2 kB view raw
1{ 2 stdenv, 3 fetchurl, 4 lib, 5 extra-cmake-modules, 6 kdoctools, 7 wrapQtAppsHook, 8 baloo, 9 karchive, 10 kconfig, 11 kcrash, 12 kfilemetadata, 13 kinit, 14 kirigami2, 15 knewstuff, 16 okular, 17 plasma-framework, 18}: 19 20stdenv.mkDerivation (finalAttrs: { 21 pname = "peruse"; 22 # while technically a beta, the latest release is from 2016 and doesn't build without a lot of 23 # patching 24 version = "1.80"; 25 26 src = fetchurl { 27 url = "mirror://kde/stable/peruse/peruse-${finalAttrs.version}.tar.xz"; 28 hash = "sha256-xnSVnKF20jbxVoFW41A22NZWVZUry/F7G+Ts5NK6M1E="; 29 }; 30 31 nativeBuildInputs = [ 32 extra-cmake-modules 33 kdoctools 34 wrapQtAppsHook 35 ]; 36 37 propagatedBuildInputs = [ 38 baloo 39 karchive 40 kconfig 41 kcrash 42 kfilemetadata 43 kinit 44 kirigami2 45 knewstuff 46 okular 47 plasma-framework 48 ]; 49 50 # the build is otherwise crazy loud 51 cmakeFlags = [ "-Wno-dev" ]; 52 53 pathsToLink = [ "/etc/xdg/peruse.knsrc" ]; 54 55 meta = with lib; { 56 description = "Comic book reader"; 57 homepage = "https://peruse.kde.org"; 58 license = licenses.gpl2Only; 59 maintainers = with maintainers; [ peterhoeg ]; 60 mainProgram = "peruse"; 61 inherit (kirigami2.meta) platforms; 62 }; 63})