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

60 lines
1.1 KiB
Nix

{ 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.1";
src = fetchFromGitHub {
owner = "johnfactotum";
repo = "foliate";
rev = "refs/tags/${version}";
hash = "sha256-uKxybt8ZZuk2tWSJLKC7Tgw78EfMMgI99VExfgOdHwA=";
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 = "Simple and modern GTK eBook reader";
homepage = "https://johnfactotum.github.io/foliate";
changelog = "https://github.com/johnfactotum/foliate/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ onny ];
mainProgram = "foliate";
};
}