mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
b9e4b87e32
https://github.com/linuxmint/xreader/compare/3.8.4...4.0.0 Fixes CVE-2023-44451, CVE-2023-44452.
78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, glib
|
|
, gobject-introspection
|
|
, intltool
|
|
, shared-mime-info
|
|
, gtk3
|
|
, wrapGAppsHook
|
|
, libarchive
|
|
, libxml2
|
|
, xapp
|
|
, meson
|
|
, pkg-config
|
|
, cairo
|
|
, libsecret
|
|
, poppler
|
|
, libspectre
|
|
, libgxps
|
|
, webkitgtk_4_1
|
|
, nodePackages
|
|
, ninja
|
|
, gsettings-desktop-schemas
|
|
, djvulibre
|
|
, backends ? [ "pdf" "ps" /* "dvi" "t1lib" */ "djvu" "tiff" "pixbuf" "comics" "xps" "epub" ]
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xreader";
|
|
version = "4.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-TL8LlNQLGUevXlNcnS9HcdGh1TzC/0I/6reJpe6rahM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
shared-mime-info
|
|
wrapGAppsHook
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
intltool
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dmathjax-directory=${nodePackages.mathjax}"
|
|
] ++ (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 = "A 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;
|
|
maintainers = teams.cinnamon.members;
|
|
};
|
|
}
|