nixpkgs/pkgs/tools/misc/peruse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.2 KiB
Nix
Raw Normal View History

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