From d20bb7f9be205bfbaa93bd3356db2f5ffef78e65 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 23 Mar 2023 23:21:33 +0000 Subject: [PATCH] gupnp_1_6: support cross compilation --- pkgs/development/libraries/gupnp/1.6.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gupnp/1.6.nix b/pkgs/development/libraries/gupnp/1.6.nix index 9145420ad25..2b3cd2566b5 100644 --- a/pkgs/development/libraries/gupnp/1.6.nix +++ b/pkgs/development/libraries/gupnp/1.6.nix @@ -1,5 +1,6 @@ { stdenv , lib +, fetchpatch , fetchurl , meson , ninja @@ -25,6 +26,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-T09Biwe4EWTfH3q2EuKOTAFsLQhbik85+XlF+LFe4kg="; }; + patches = [ + (fetchpatch { + # https://gitlab.gnome.org/GNOME/gupnp/-/merge_requests/32 + name = "gi-docgen-as-native-dep.patch"; + url = "https://gitlab.gnome.org/GNOME/gupnp/-/commit/11d4a33cff1f5d8b8ad4b80c4506246a9e0dff8f.diff"; + hash = "sha256-+p4vzUG2v+7mxtQ5AUcEI7SW0cDX6XlzqlyegF+I1Go="; + }) + ]; + depsBuildBuild = [ pkg-config ]; @@ -47,7 +57,6 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dgtk_doc=true" - "-Dintrospection=true" ]; doCheck = true;