2021-10-28 06:52:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2023-08-04 22:07:22 +00:00
|
|
|
, fetchpatch2
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
2022-11-21 17:40:18 +00:00
|
|
|
, docbook_xml_dtd_45
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gssdp
|
|
|
|
, libsoup
|
|
|
|
, libxml2
|
|
|
|
, libuuid
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gupnp";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
outputs = [ "out" "dev" ]
|
|
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-N2GxXLBjYh+Efz7/t9djfwMXUA/Ka9oeGQT3OSF1Ch8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
patches = [
|
2021-10-28 06:52:43 +00:00
|
|
|
# Bring .pc file in line with our patched pkg-config.
|
|
|
|
./0001-pkg-config-Declare-header-dependencies-as-public.patch
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
# Unbreak build with Meson 1.2.0
|
|
|
|
# https://gitlab.gnome.org/GNOME/gupnp/-/merge_requests/33
|
|
|
|
(fetchpatch2 {
|
|
|
|
name = "meson-1.2-fix.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gupnp/-/commit/85c0244cfbf933d3e90d50ab68394c68d86f9ed5.patch";
|
|
|
|
hash = "sha256-poDhkEgDTpgGnTbbZLPwx8Alf0h81vmzJyx3izWmDGw=";
|
|
|
|
})
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# Fix build against libxml2 2.11
|
|
|
|
# https://gitlab.gnome.org/GNOME/gupnp/-/merge_requests/34
|
|
|
|
(fetchpatch2 {
|
2023-08-22 20:05:09 +00:00
|
|
|
name = "libxml2-2.11-fix.patch";
|
2023-08-04 22:07:22 +00:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/gupnp/-/commit/bc56f02b0f89e96f2bd74af811903d9931965f58.patch";
|
|
|
|
hash = "sha256-KCHlq7Es+WLIWKgIgGVTaHarVQIiZPEi5r6nMAhXTgY=";
|
|
|
|
})
|
2021-06-06 07:54:09 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gobject-introspection
|
|
|
|
vala
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
2022-11-21 17:40:18 +00:00
|
|
|
docbook_xml_dtd_45
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libuuid
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gssdp
|
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-12-06 16:07:01 +00:00
|
|
|
"-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
# Bail out! ERROR:../tests/test-bugs.c:168:test_on_timeout: code should not be reached
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
freeze = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of the UPnP specification";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gupnp-binding-tool-1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2022-11-21 17:40:18 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|