presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / li / librum / package.nix
blob821c9da8396a0bf380ff8c75ada97dff302902db
2   lib,
3   mupdf,
4   stdenv,
5   fetchFromGitHub,
6   replaceVars,
7   cmake,
8   qt6,
9   desktopToDarwinBundle,
12 let
13   mupdf-cxx = mupdf.override { enableCxx = true; };
15 stdenv.mkDerivation rec {
16   pname = "librum";
17   version = "0.12.2";
19   src = fetchFromGitHub {
20     owner = "Librum-Reader";
21     repo = "Librum";
22     rev = "v.${version}";
23     fetchSubmodules = true;
24     hash = "sha256-Iwcbcz8LrznFP8rfW6mg9p7klAtTx4daFxylTeFKrH0=";
25   };
27   patches = [
28     (replaceVars ./use_mupdf_in_nixpkgs.patch {
29       nixMupdfLibPath = "${mupdf-cxx.out}/lib";
30       nixMupdfIncludePath = "${mupdf-cxx.dev}/include";
31     })
32   ];
34   nativeBuildInputs =
35     [
36       cmake
37       qt6.qttools
38       qt6.wrapQtAppsHook
39     ]
40     ++ lib.optionals stdenv.hostPlatform.isDarwin [
41       desktopToDarwinBundle
42     ];
44   buildInputs =
45     [
46       qt6.qtbase
47       qt6.qtsvg
48     ]
49     ++ lib.optionals stdenv.hostPlatform.isLinux [
50       qt6.qtwayland
51     ];
53   meta = with lib; {
54     description = "Application designed to make reading enjoyable and straightforward";
55     longDescription = ''
56       Librum is an application designed to make reading enjoyable
57       and straightforward for everyone. It's not just an e-book
58       reader. With Librum, you can manage your own online library
59       and access it from any device anytime, anywhere. It has
60       features like note-taking, AI tooling, and highlighting,
61       while offering customization to make it as personal as you
62       want! Librum also provides free access to over 70,000 books
63       and personal reading statistics while being free and
64       completely open source.
65     '';
66     homepage = "https://librumreader.com";
67     changelog = "https://github.com/Librum-Reader/Librum/releases/tag/${src.rev}";
68     license = licenses.gpl3Plus;
69     mainProgram = "librum";
70     maintainers = with maintainers; [
71       aleksana
72       oluceps
73     ];
74     platforms = platforms.unix;
75   };