gupnp-igd: add gupnp-1.2 compatibility

This commit is contained in:
Tor Hedin Brønner 2019-03-16 01:29:38 +01:00 committed by Jan Tojnar
parent e5e0d13224
commit aae3987047
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,18 +1,51 @@
{ stdenv, fetchurl, pkgconfig, gettext, gobject-introspection, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, gupnp }: { stdenv
, fetchurl
, fetchpatch
, autoreconfHook
, pkgconfig
, gettext
, gobject-introspection
, gtk-doc
, docbook_xsl
, docbook_xml_dtd_412
, glib
, gupnp
, gnome3
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gupnp-igd-${version}"; pname = "gupnp-igd";
version = "0.2.5"; version = "0.2.5";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gupnp-igd/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "081v1vhkbz3wayv49xfiskvrmvnpx93k25am2wnarg5cifiiljlb"; sha256 = "081v1vhkbz3wayv49xfiskvrmvnpx93k25am2wnarg5cifiiljlb";
}; };
nativeBuildInputs = [ pkgconfig gettext gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_412 ]; patches = [
propagatedBuildInputs = [ glib gupnp ]; # Add gupnp-1.2 compatibility
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/gupnp-igd/commit/63531558a16ac2334a59f627b2fca5576dcfbb2e.patch;
sha256 = "0s8lkyy9fnnnnkkqwbk6gxb7795bb1kl1swk5ldjnlrzhfcy1ab2";
})
];
nativeBuildInputs = [
pkgconfig
autoreconfHook
gettext
gobject-introspection
gtk-doc
docbook_xsl
docbook_xml_dtd_412
];
propagatedBuildInputs = [
glib
gupnp
];
configureFlags = [ configureFlags = [
"--enable-gtk-doc" "--enable-gtk-doc"
@ -20,6 +53,12 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Library to handle UPnP IGD port mapping"; description = "Library to handle UPnP IGD port mapping";
homepage = http://www.gupnp.org/; homepage = http://www.gupnp.org/;