@@ -1,8 +1,8 @@
11{ lib, stdenv
22, fetchurl
3−, fetchpatch
4−, autoreconfHook
53, pkg-config
4+, meson
5+, ninja
66, gettext
77, gobject-introspection
88, gtk-doc
@@ -15,26 +15,19 @@
1515
1616stdenv.mkDerivation rec {
1717 pname = "gupnp-igd";
18− version = "0.2.5";
18+ version = "1.2.0";
1919
2020 outputs = [ "out" "dev" "devdoc" ];
2121
2222 src = fetchurl {
2323 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
24− sha256 = "081v1vhkbz3wayv49xfiskvrmvnpx93k25am2wnarg5cifiiljlb";
24+ sha256 = "sha256-S1EgCYqhPt0ngYup7k1/6WG/VAv1DQVv9wPGFUXgK+E=";
2525 };
2626
27− patches = [
28− # Add gupnp-1.2 compatibility
29− (fetchpatch {
30− url = "https://gitlab.gnome.org/GNOME/gupnp-igd/commit/63531558a16ac2334a59f627b2fca5576dcfbb2e.patch";
31− sha256 = "0s8lkyy9fnnnnkkqwbk6gxb7795bb1kl1swk5ldjnlrzhfcy1ab2";
32− })
33− ];
34−
3527 nativeBuildInputs = [
3628 pkg-config
37− autoreconfHook
29+ meson
30+ ninja
3831 gettext
3932 gobject-introspection
4033 gtk-doc
@@ -47,8 +40,8 @@ stdenv.mkDerivation rec {
4740 gupnp
4841 ];
4942
50− configureFlags = [
51− "--enable-gtk-doc"
43+ mesonFlags = [
44+ "-Dgtk_doc=true"
5245 ];
5346
5447 doCheck = true;
@@ -62,7 +55,7 @@ stdenv.mkDerivation rec {
6255 meta = with lib; {
6356 description = "Library to handle UPnP IGD port mapping";
6457 homepage = "http://www.gupnp.org/";
65− license = licenses.lgpl21;
58+ license = licenses.lgpl21Plus;
6659 platforms = platforms.linux;
6760 };
6861}