Files
nixpkgs/pkgs/by-name/xr/xreader/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

89 lines
1.4 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
glib,
gobject-introspection,
intltool,
shared-mime-info,
gtk3,
wrapGAppsHook3,
libarchive,
libxml2,
xapp,
meson,
pkg-config,
cairo,
libsecret,
poppler,
libspectre,
libgxps,
webkitgtk_4_1,
nodePackages,
ninja,
djvulibre,
backends ? [
"pdf"
"ps" # "dvi" "t1lib"
"djvu"
"tiff"
"pixbuf"
"comics"
"xps"
"epub"
],
}:
stdenv.mkDerivation rec {
pname = "xreader";
version = "4.4.0";
src = fetchFromGitHub {
owner = "linuxmint";
repo = "xreader";
rev = version;
hash = "sha256-56G+UmYTNEp9lMU56Nm+OIuPwXwhDt92ANkaC0NWZZQ=";
};
nativeBuildInputs = [
shared-mime-info
wrapGAppsHook3
meson
ninja
pkg-config
gobject-introspection
intltool
];
mesonFlags = [
"-Dmathjax-directory=${nodePackages.mathjax}"
"-Dintrospection=true"
]
++ (map (x: "-D${x}=true") backends);
buildInputs = [
glib
gtk3
xapp
cairo
libarchive
libxml2
libsecret
poppler
libspectre
libgxps
webkitgtk_4_1
nodePackages.mathjax
djvulibre
];
meta = with lib; {
description = "Document viewer capable of displaying multiple and single page
document formats like PDF and Postscript";
homepage = "https://github.com/linuxmint/xreader";
license = licenses.gpl2Plus;
platforms = platforms.linux;
teams = [ teams.cinnamon ];
};
}