about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/foliate/default.nix
blob: 7a7aa8c1c9a1513604e8d2c504fae2a4fa64298d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ stdenv
, lib
, fetchFromGitHub
, meson
, gettext
, glib
, gjs
, ninja
, gtk4
, webkitgtk_6_0
, gsettings-desktop-schemas
, wrapGAppsHook4
, desktop-file-utils
, gobject-introspection
, glib-networking
, pkg-config
, libadwaita
}:

stdenv.mkDerivation rec {
  pname = "foliate";
  version = "3.1.0";

  src = fetchFromGitHub {
    owner = "johnfactotum";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-6cymAqQxHHoTgzEyUKXC7zV/lUEJfIG+54+tLsc9iHo=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    desktop-file-utils
    gobject-introspection
    meson
    ninja
    pkg-config
    wrapGAppsHook4
  ];

  buildInputs = [
    gettext
    gjs
    glib
    glib-networking
    gsettings-desktop-schemas
    gtk4
    libadwaita
    webkitgtk_6_0
  ];

  meta = with lib; {
    description = "A simple and modern GTK eBook reader";
    mainProgram = "foliate";
    homepage = "https://johnfactotum.github.io/foliate";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ onny ];
  };
}