nixpkgs-suyu/pkgs/development/libraries/gcab/default.nix

79 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, gettext
, gobject-introspection
2019-11-07 13:51:04 +01:00
, gtk-doc
, docbook_xsl
, docbook_xml_dtd_43
, pkgconfig
, meson
, ninja
, git
, vala
, glib
, zlib
, gnome3
, nixosTests
2018-08-20 01:00:25 +02:00
}:
2015-04-10 17:02:57 +02:00
stdenv.mkDerivation rec {
pname = "gcab";
2019-11-02 05:16:03 +01:00
version = "1.3";
2018-02-09 21:58:56 +01:00
outputs = [ "bin" "out" "dev" "devdoc" "installedTests" ];
2015-04-10 17:02:57 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-11-02 05:16:03 +01:00
sha256 = "1rv81b37d5ya7xpfdxrfk173jjcwabxyng7vafgwyl5myv44qc0h";
2015-04-10 17:02:57 +02:00
};
patches = [
# allow installing installed tests to a separate output
./installed-tests-path.patch
];
nativeBuildInputs = [
meson
ninja
git
pkgconfig
vala
gettext
gobject-introspection
2019-11-07 13:51:04 +01:00
gtk-doc
docbook_xsl
docbook_xml_dtd_43
];
2018-02-09 21:58:56 +01:00
buildInputs = [
glib
zlib
];
2018-02-09 21:58:56 +01:00
mesonFlags = [
"-Dinstalled_tests=true"
"-Dinstalled_test_prefix=${placeholder ''installedTests''}"
2018-02-09 21:58:56 +01:00
];
2015-04-10 17:02:57 +02:00
doCheck = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
tests = {
installedTests = nixosTests.installed-tests.gcab;
};
};
2015-04-10 17:02:57 +02:00
meta = with stdenv.lib; {
description = "GObject library to create cabinet files";
homepage = "https://gitlab.gnome.org/GNOME/gcab";
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
2015-04-10 17:02:57 +02:00
platforms = platforms.linux;
};
}