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

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

82 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, gettext
, gobject-introspection
2019-11-07 12:51:04 +00:00
, gtk-doc
, docbook_xsl
, docbook_xml_dtd_43
, pkg-config
, meson
, ninja
, vala
, glib
, zlib
, gnome
, nixosTests
2018-08-19 23:00:25 +00:00
}:
2015-04-10 15:02:57 +00:00
stdenv.mkDerivation rec {
pname = "gcab";
version = "1.5";
2018-02-09 20:58:56 +00:00
outputs = [ "bin" "out" "dev" "devdoc" "installedTests" ];
2015-04-10 15:02:57 +00:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "Rr90QkkfqkFIJCuewqB4al9unv+xsFZuUpDozIbwDww=";
2015-04-10 15:02:57 +00:00
};
patches = [
# allow installing installed tests to a separate output
./installed-tests-path.patch
];
nativeBuildInputs = [
meson
ninja
pkg-config
vala
gettext
gobject-introspection
2019-11-07 12:51:04 +00:00
gtk-doc
docbook_xsl
docbook_xml_dtd_43
];
2018-02-09 20:58:56 +00:00
buildInputs = [
glib
zlib
];
2018-02-09 20:58:56 +00:00
2019-11-07 13:49:05 +00:00
# required by libgcab-1.0.pc
propagatedBuildInputs = [
glib
];
2018-02-09 20:58:56 +00:00
mesonFlags = [
"-Dinstalled_tests=true"
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
2018-02-09 20:58:56 +00:00
];
2015-04-10 15:02:57 +00:00
doCheck = true;
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none";
};
tests = {
installedTests = nixosTests.installed-tests.gcab;
};
};
meta = with lib; {
description = "GObject library to create cabinet files";
homepage = "https://gitlab.gnome.org/GNOME/gcab";
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2021-07-28 12:42:08 +00:00
platforms = platforms.unix;
2015-04-10 15:02:57 +00:00
};
}