2021-01-21 17:00:13 +00:00
|
|
|
|
{ lib, stdenv
|
2019-01-02 00:20:52 +00:00
|
|
|
|
, fetchurl
|
|
|
|
|
, fetchpatch
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
|
, pkg-config
|
2019-01-02 00:20:52 +00:00
|
|
|
|
, gobject-introspection
|
|
|
|
|
, vala
|
|
|
|
|
, gtk-doc
|
|
|
|
|
, docbook_xsl
|
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
|
, glib
|
|
|
|
|
, gssdp
|
|
|
|
|
, libsoup
|
|
|
|
|
, libxml2
|
|
|
|
|
, libuuid
|
|
|
|
|
, gnome3
|
|
|
|
|
}:
|
2018-08-14 22:45:35 +00:00
|
|
|
|
|
2014-01-14 20:33:11 +00:00
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-02 00:20:52 +00:00
|
|
|
|
pname = "gupnp";
|
|
|
|
|
version = "1.2.0";
|
2018-08-14 22:45:35 +00:00
|
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-08-03 20:49:39 +00:00
|
|
|
|
|
2008-06-18 19:03:58 +00:00
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
|
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-01-02 00:20:52 +00:00
|
|
|
|
sha256 = "0911lv1bivsyv9wwdxm0i1w4r89j0vyyqp200gsfdnzk6v1a4x7x";
|
2008-06-18 19:03:58 +00:00
|
|
|
|
};
|
|
|
|
|
|
2018-08-14 22:45:35 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Nix’s pkg-config ignores Requires.private
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/commit/1e6622f4d5d500d6e701bd81dd4a22977d10637d
|
|
|
|
|
# We are essentialy reverting the following patch for now
|
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=685477
|
|
|
|
|
# at least until Requires.internal or something is implemented
|
|
|
|
|
# https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/7
|
|
|
|
|
./fix-requires.patch
|
2019-01-02 00:20:52 +00:00
|
|
|
|
|
|
|
|
|
# fix deadlock in gupnp-igd tests
|
|
|
|
|
(fetchpatch {
|
2020-04-01 01:11:51 +00:00
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gupnp/commit/d208562657f62b34759896ca9e974bd582d1f963.patch";
|
2019-01-02 00:20:52 +00:00
|
|
|
|
sha256 = "02kzsb4glxhgb1npf6qqgafiki0ws75sly5h470431mihc6sgp4f";
|
|
|
|
|
})
|
|
|
|
|
# fix breakage in gupnp-igd tests
|
|
|
|
|
(fetchpatch {
|
2020-04-01 01:11:51 +00:00
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gupnp/commit/0648399acb989473119fe59d0b9f65c923e69483.patch";
|
2019-01-02 00:20:52 +00:00
|
|
|
|
sha256 = "0ba0rngk3a4n3z4dmq06wzgh0n3q9la1nr25qdxqbwlszmxfxpjf";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
|
pkg-config
|
2019-01-02 00:20:52 +00:00
|
|
|
|
gobject-introspection
|
|
|
|
|
vala
|
|
|
|
|
gtk-doc
|
|
|
|
|
docbook_xsl
|
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
|
docbook_xml_dtd_44
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
libuuid
|
2018-08-14 22:45:35 +00:00
|
|
|
|
];
|
|
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
glib
|
|
|
|
|
gssdp
|
|
|
|
|
libsoup
|
|
|
|
|
libxml2
|
|
|
|
|
];
|
2012-03-13 19:06:10 +00:00
|
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
|
mesonFlags = [
|
|
|
|
|
"-Dgtk_doc=true"
|
2018-08-14 22:45:35 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-01-11 12:28:12 +00:00
|
|
|
|
|
2019-01-02 00:20:52 +00:00
|
|
|
|
passthru = {
|
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
|
packageName = pname;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
|
homepage = "http://www.gupnp.org/";
|
2014-08-24 14:21:08 +00:00
|
|
|
|
description = "An implementation of the UPnP specification";
|
2018-08-14 22:45:35 +00:00
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
|
platforms = platforms.linux;
|
2012-03-13 19:06:10 +00:00
|
|
|
|
};
|
2008-06-18 19:03:58 +00:00
|
|
|
|
}
|