2019-03-16 00:29:38 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
|
|
|
, pkgconfig
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, glib
|
|
|
|
, gupnp
|
|
|
|
, gnome3
|
|
|
|
}:
|
2018-09-08 01:07:59 +00:00
|
|
|
|
2012-03-13 19:06:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-03-16 00:29:38 +00:00
|
|
|
pname = "gupnp-igd";
|
2018-09-08 01:07:59 +00:00
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2012-03-13 19:06:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-16 00:29:38 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-09-08 01:07:59 +00:00
|
|
|
sha256 = "081v1vhkbz3wayv49xfiskvrmvnpx93k25am2wnarg5cifiiljlb";
|
2012-03-13 19:06:17 +00:00
|
|
|
};
|
|
|
|
|
2019-03-16 00:29:38 +00:00
|
|
|
patches = [
|
|
|
|
# Add gupnp-1.2 compatibility
|
|
|
|
(fetchpatch {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://gitlab.gnome.org/GNOME/gupnp-igd/commit/63531558a16ac2334a59f627b2fca5576dcfbb2e.patch";
|
2019-03-16 00:29:38 +00:00
|
|
|
sha256 = "0s8lkyy9fnnnnkkqwbk6gxb7795bb1kl1swk5ldjnlrzhfcy1ab2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gupnp
|
|
|
|
];
|
2012-03-13 19:06:17 +00:00
|
|
|
|
2018-09-08 01:07:59 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-gtk-doc"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-03-16 00:29:38 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-08 01:07:59 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library to handle UPnP IGD port mapping";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.gupnp.org/";
|
2018-09-08 01:07:59 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
2012-03-13 19:06:17 +00:00
|
|
|
};
|
|
|
|
}
|