2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2019-11-07 13:46:37 +01:00
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
2019-11-07 13:51:04 +01:00
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-11-07 13:46:37 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, git
|
|
|
|
, vala
|
|
|
|
, glib
|
|
|
|
, zlib
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-11-07 13:59:11 +01:00
|
|
|
, nixosTests
|
2018-08-20 01:00:25 +02:00
|
|
|
}:
|
2015-04-10 17:02:57 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 08:46:07 +02:00
|
|
|
pname = "gcab";
|
2020-01-21 16:51:08 +01:00
|
|
|
version = "1.4";
|
2018-02-09 21:58:56 +01:00
|
|
|
|
2019-11-07 13:59:11 +01:00
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" "installedTests" ];
|
2015-04-10 17:02:57 +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";
|
2020-01-21 16:51:08 +01:00
|
|
|
sha256 = "13q43iqld4l50yra45lhvkd376pn6qpk7rkx374zn8y9wsdzm9b7";
|
2015-04-10 17:02:57 +02:00
|
|
|
};
|
|
|
|
|
2019-11-07 13:59:11 +01:00
|
|
|
patches = [
|
|
|
|
# allow installing installed tests to a separate output
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
2019-11-07 13:46:37 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
git
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-11-07 13:46:37 +01:00
|
|
|
vala
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
2019-11-07 13:51:04 +01:00
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_43
|
2019-11-07 13:46:37 +01:00
|
|
|
];
|
2018-02-09 21:58:56 +01:00
|
|
|
|
2019-11-07 13:46:37 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
zlib
|
|
|
|
];
|
2018-02-09 21:58:56 +01:00
|
|
|
|
2019-11-07 14:49:05 +01:00
|
|
|
# required by libgcab-1.0.pc
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2018-02-09 21:58:56 +01:00
|
|
|
mesonFlags = [
|
2019-11-07 13:59:11 +01:00
|
|
|
"-Dinstalled_tests=true"
|
2021-01-24 10:19:10 +01:00
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
2018-02-09 21:58:56 +01:00
|
|
|
];
|
2015-04-10 17:02:57 +02:00
|
|
|
|
2019-11-07 13:59:11 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-04-25 08:46:07 +02:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2019-04-25 08:46:07 +02:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2019-11-07 13:59:11 +01:00
|
|
|
|
|
|
|
tests = {
|
|
|
|
installedTests = nixosTests.installed-tests.gcab;
|
|
|
|
};
|
2019-04-25 08:46:07 +02:00
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2019-11-07 13:46:37 +01:00
|
|
|
description = "GObject library to create cabinet files";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gcab";
|
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2015-04-10 17:02:57 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|