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
This commit is contained in:
Randy Eckenrode
2024-07-27 09:55:11 -04:00
parent 8ebbf8f8cb
commit 1b23eff3db
@@ -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