2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, glib, gobject-introspection, cairo
|
2019-02-14 12:31:17 +00:00
|
|
|
, libarchive, freetype, libjpeg, libtiff, gnome3, lcms2
|
2016-09-18 20:35:23 +01:00
|
|
|
}:
|
|
|
|
|
2018-12-25 03:06:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:10:30 +00:00
|
|
|
pname = "libgxps";
|
2019-02-05 21:05:32 +00:00
|
|
|
version = "0.3.1";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-02-05 21:05:32 +00:00
|
|
|
sha256 = "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gobject-introspection ];
|
2019-02-14 12:31:17 +00:00
|
|
|
buildInputs = [ glib cairo freetype libjpeg libtiff lcms2 ];
|
2016-09-18 20:35:23 +01:00
|
|
|
propagatedBuildInputs = [ libarchive ];
|
|
|
|
|
2017-10-03 02:29:08 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-test=false"
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 01:10:30 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-03-03 01:10:30 +00:00
|
|
|
description = "A GObject based library for handling and rendering XPS documents";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/libgxps";
|
2018-03-03 01:10:30 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-03 01:10:30 +00:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|