Merge gssdp: fix cross compilation (#353433)

This commit is contained in:
Jan Tojnar
2024-11-06 10:04:30 +01:00
committed by GitHub
+11 -2
View File
@@ -1,5 +1,6 @@
{ stdenv
, lib
, fetchpatch2
, fetchurl
, meson
, ninja
@@ -21,13 +22,21 @@ stdenv.mkDerivation rec {
version = "1.4.1";
outputs = [ "out" "dev" ]
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
++ lib.optionals withIntrospection [ "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/gssdp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "VySWVDV9PVGxQDFRaaJMBnHeeqUsb3XIxcmr1Ao1JSk=";
};
patches = [
(fetchpatch2 {
# https://gitlab.gnome.org/GNOME/gssdp/-/merge_requests/11
url = "https://gitlab.gnome.org/GNOME/gssdp/-/commit/db9d02c22005be7e5e81b43a3ab777250bd7b27b.diff";
hash = "sha256-DJQrg6MhzpX8R0QaNnqdwA1+v8xncDU8jcX+I3scW1M=";
})
];
strictDeps = true;
depsBuildBuild = [
@@ -64,7 +73,7 @@ stdenv.mkDerivation rec {
# Bail out! GLib-GIO-FATAL-CRITICAL: g_inet_address_to_string: assertion 'G_IS_INET_ADDRESS (address)' failed
doCheck = !stdenv.hostPlatform.isDarwin;
postFixup = lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) ''
postFixup = lib.optionalString withIntrospection ''
# Move developer documentation to devdoc output.
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \