depot/third_party/nixpkgs/pkgs/tools/misc/peruse/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

62 lines
1.2 KiB
Nix

{ stdenv
, fetchurl
, lib
, extra-cmake-modules
, kdoctools
, wrapQtAppsHook
, baloo
, karchive
, kconfig
, kcrash
, kfilemetadata
, kinit
, kirigami2
, knewstuff
, okular
, plasma-framework
}:
stdenv.mkDerivation (finalAttrs: {
pname = "peruse";
# while technically a beta, the latest release is from 2016 and doesn't build without a lot of
# patching
version = "1.80";
src = fetchurl {
url = "mirror://kde/stable/peruse/peruse-${finalAttrs.version}.tar.xz";
hash = "sha256-xnSVnKF20jbxVoFW41A22NZWVZUry/F7G+Ts5NK6M1E=";
};
nativeBuildInputs = [
extra-cmake-modules
kdoctools
wrapQtAppsHook
];
propagatedBuildInputs = [
baloo
karchive
kconfig
kcrash
kfilemetadata
kinit
kirigami2
knewstuff
okular
plasma-framework
];
# the build is otherwise crazy loud
cmakeFlags = [ "-Wno-dev" ];
pathsToLink = [ "/etc/xdg/peruse.knsrc" ];
meta = with lib; {
description = "Comic book reader";
homepage = "https://peruse.kde.org";
license = licenses.gpl2Only;
maintainers = with maintainers; [ peterhoeg ];
mainProgram = "peruse";
inherit (kirigami2.meta) platforms;
};
})