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