From 1b23eff3db42f19d7a3e92888689ef58b2bcd621 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 27 Jul 2024 09:54:28 -0400 Subject: [PATCH] gst_all_1.gst-plugins-rs: use lld on Darwin ld64 is failing to link these plugins with the following error. lld does not have this problem and can link this plugin successfully. section __TEXT,__text reloc 18: symbol index out of range --- pkgs/development/libraries/gstreamer/rs/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/gstreamer/rs/default.nix b/pkgs/development/libraries/gstreamer/rs/default.nix index 4c0d8bffb35a..3ecfd37758ce 100644 --- a/pkgs/development/libraries/gstreamer/rs/default.nix +++ b/pkgs/development/libraries/gstreamer/rs/default.nix @@ -11,6 +11,7 @@ , rustc , cargo , cargo-c +, lld , nasm , gstreamer , gst-plugins-base @@ -199,10 +200,14 @@ stdenv.mkDerivation (finalAttrs: { cargo cargo-c' nasm + ] ++ lib.optionals stdenv.isDarwin [ + lld ] ++ lib.optionals enableDocumentation [ hotdoc ]; + env = lib.optionalAttrs stdenv.isDarwin { NIX_CFLAGS_LINK = "-fuse-ld=lld"; }; + buildInputs = [ gstreamer gst-plugins-base