1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/libraries/libgxps/default.nix
2020-04-13 18:50:35 +02:00

37 lines
1 KiB
Nix

{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gobject-introspection, cairo
, libarchive, freetype, libjpeg, libtiff, gnome3, lcms2
}:
stdenv.mkDerivation rec {
pname = "libgxps";
version = "0.3.1";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "157s4c9gjjss6yd7qp7n4q6s72gz1k4ilsx4xjvp357azk49z4qs";
};
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection ];
buildInputs = [ glib cairo freetype libjpeg libtiff lcms2 ];
propagatedBuildInputs = [ libarchive ];
mesonFlags = [
"-Denable-test=false"
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
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;
};
}