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