2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, glib, gobject-introspection, cairo
|
2020-04-24 23:36:52 +00:00
|
|
|
, libarchive, freetype, libjpeg, libtiff, gnome3, lcms2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libgxps";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "0.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "bSeGclajXM+baSU+sqiKMrrKO5fV9O9/guNmf6Q1JRw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gobject-introspection ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glib cairo freetype libjpeg libtiff lcms2 ];
|
|
|
|
propagatedBuildInputs = [ libarchive ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-test=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A GObject based library for handling and rendering XPS documents";
|
|
|
|
homepage = "https://wiki.gnome.org/Projects/libgxps";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|