nixpkgs/pkgs/by-name/li/libgxps/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchurl,
meson,
ninja,
pkg-config,
glib,
gobject-introspection,
cairo,
libarchive,
freetype,
libjpeg,
libtiff,
gnome,
lcms2,
}:
2018-12-25 03:06:47 +00:00
stdenv.mkDerivation rec {
2018-03-03 01:10:30 +00:00
pname = "libgxps";
2021-03-01 13:17:21 +00:00
version = "0.3.2";
outputs = [
"out"
"dev"
];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-03-01 13:17:21 +00:00
sha256 = "bSeGclajXM+baSU+sqiKMrrKO5fV9O9/guNmf6Q1JRw=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
];
2019-02-14 12:31:17 +00:00
buildInputs = [
glib
cairo
freetype
libjpeg
libtiff
lcms2
];
propagatedBuildInputs = [ libarchive ];
2017-10-03 01:29:08 +00:00
mesonFlags =
[
"-Denable-test=false"
2021-07-17 19:42:50 +00:00
]
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-Ddisable-introspection=true"
2017-10-03 01:29:08 +00:00
];
2018-03-03 01:10:30 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-03 01:10:30 +00:00
packageName = pname;
versionPolicy = "none";
};
};
meta = with lib; {
2018-03-03 01:10:30 +00:00
description = "GObject based library for handling and rendering XPS documents";
homepage = "https://gitlab.gnome.org/GNOME/libgxps";
2018-03-03 01:10:30 +00:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2018-03-03 01:10:30 +00:00
platforms = platforms.unix;
};
}