2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-11-07 12:46:37 +00:00
|
|
|
, 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
|
|
|
|
, vala
|
|
|
|
, glib
|
|
|
|
, zlib
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
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";
|
2022-08-05 20:01:45 +00:00
|
|
|
version = "1.5";
|
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 {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-08-05 20:01:45 +00:00
|
|
|
sha256 = "Rr90QkkfqkFIJCuewqB4al9unv+xsFZuUpDozIbwDww=";
|
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
|
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"
|
2021-01-24 09:19:10 +00:00
|
|
|
"-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 = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2019-04-25 06:46:07 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with 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;
|
2021-07-28 12:42:08 +00:00
|
|
|
platforms = platforms.unix;
|
2015-04-10 15:02:57 +00:00
|
|
|
};
|
|
|
|
}
|