2018-12-02 12:41:15 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gobject-introspection, cairo
|
2019-02-14 13:31:17 +01:00
|
|
|
, libarchive, freetype, libjpeg, libtiff, gnome3, lcms2
|
2016-09-18 21:35:23 +02:00
|
|
|
}:
|
|
|
|
|
2018-12-25 04:06:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 02:10:30 +01:00
|
|
|
pname = "libgxps";
|
2019-02-05 22:05:32 +01:00
|
|
|
version = "0.3.1";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-25 04:06:47 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-02-05 22:05:32 +01:00
|
|
|
sha256 = "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2018-12-02 12:41:15 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection ];
|
2019-02-14 13:31:17 +01:00
|
|
|
buildInputs = [ glib cairo freetype libjpeg libtiff lcms2 ];
|
2016-09-18 21:35:23 +02:00
|
|
|
propagatedBuildInputs = [ libarchive ];
|
|
|
|
|
2017-10-03 03:29:08 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-test=false"
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 02:10:30 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = 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
|
|
|
};
|
|
|
|
}
|