2017-10-03 03:29:08 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gobjectIntrospection, cairo
|
2018-03-03 02:10:30 +01:00
|
|
|
, libarchive, freetype, libjpeg, libtiff, gnome3
|
2016-09-18 21:35:23 +02:00
|
|
|
}:
|
|
|
|
|
2018-03-03 02:10:30 +01:00
|
|
|
let
|
|
|
|
pname = "libgxps";
|
|
|
|
version = "0.3.0";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-03 02:10:30 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2017-10-03 03:29:08 +02:00
|
|
|
sha256 = "412b1343bd31fee41f7204c47514d34c563ae34dafa4cc710897366bd6cd0fae";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2017-10-03 03:29:08 +02:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection ];
|
|
|
|
buildInputs = [ glib cairo freetype libjpeg libtiff ];
|
2016-09-18 21:35:23 +02:00
|
|
|
propagatedBuildInputs = [ libarchive ];
|
|
|
|
|
2017-10-03 03:29:08 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-test=false"
|
|
|
|
"-Dwith-liblcms2=false"
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 02:10:30 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
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;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|