gupnp_1_6: support cross compilation

This commit is contained in:
Colin 2023-03-23 23:21:33 +00:00
parent 63793f516e
commit d20bb7f9be

View file

@ -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;