2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, glib, gobject-introspection, cairo
|
2021-05-07 23:18:14 +02:00
|
|
|
, libarchive, freetype, libjpeg, libtiff, gnome, 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";
|
2021-03-01 14:17:21 +01:00
|
|
|
version = "0.3.2";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-10-13 17:49:11 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
src = fetchurl {
|
2021-01-21 18:00:13 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-01 14:17:21 +01:00
|
|
|
sha256 = "bSeGclajXM+baSU+sqiKMrrKO5fV9O9/guNmf6Q1JRw=";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config 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"
|
2021-07-17 21:42:50 +02:00
|
|
|
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
|
|
"-Ddisable-introspection=true"
|
2017-10-03 03:29:08 +02:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-03 02:10:30 +01:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 02:10:30 +01:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-03-03 02:10:30 +01:00
|
|
|
description = "A GObject based library for handling and rendering XPS documents";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/libgxps";
|
2018-03-03 02:10:30 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-03 02:10:30 +01:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|