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