nixpkgs/pkgs/development/libraries/libgxps/default.nix

51 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gobject-introspection, cairo
2018-10-15 23:55:47 +02:00
, libarchive, freetype, libjpeg, libtiff, gnome3, fetchpatch
}:
2018-12-25 04:06:47 +01:00
stdenv.mkDerivation rec {
2018-03-03 02:10:30 +01:00
pname = "libgxps";
version = "0.3.0";
src = fetchurl {
2018-12-25 04:06:47 +01:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2017-10-03 03:29:08 +02:00
sha256 = "412b1343bd31fee41f7204c47514d34c563ae34dafa4cc710897366bd6cd0fae";
};
2018-10-15 23:55:47 +02:00
patches = [
(fetchpatch {
name = "CVE-2018-10733-1.patch";
url = https://gitlab.gnome.org/GNOME/libgxps/commit/b458226e162fe1ffe7acb4230c114a52ada5131b.patch;
sha256 = "0pqg9iwkg69qknj7vkgn26c32fndy55byxivd4km0vjfhfyx69hd";
})
(fetchpatch {
name = "CVE-2018-10733-2.patch";
url = https://gitlab.gnome.org/GNOME/libgxps/commit/133fe2a96e020d4ca65c6f64fb28a404050ebbfd.patch;
sha256 = "19n01x8zs05wf801mkz4mypvapph7h941md3hr3rj0ry6r88pkir";
})
];
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection ];
2017-10-03 03:29:08 +02:00
buildInputs = [ glib cairo freetype libjpeg libtiff ];
propagatedBuildInputs = [ libarchive ];
2017-10-03 03:29:08 +02:00
mesonFlags = [
"-Denable-test=false"
"-Dwith-liblcms2=false"
];
2018-03-03 02:10:30 +01:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
2018-03-03 02:10:30 +01:00
description = "A GObject based library for handling and rendering XPS documents";
homepage = https://wiki.gnome.org/Projects/libgxps;
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
platforms = platforms.unix;
};
}