gossip: supply correct libsdl2

Gossip previously emitted a warning about libsdl2 not working as expected. This is indeed the case. The library bundled with the Rust program seg-faults. So we'll just stick to supplying the correct one from the SDL2 package. This also makes the warning go away.
This commit is contained in:
Moritz Sanft
2024-12-05 14:48:18 +01:00
parent 3d50b85d74
commit db6be866d5
+6
View File
@@ -2,6 +2,7 @@
cmake,
darwin,
fetchFromGitHub,
SDL2,
ffmpeg_6,
fontconfig,
git,
@@ -65,6 +66,7 @@ rustPlatform.buildRustPackage rec {
buildInputs =
[
SDL2
ffmpeg_6
fontconfig
libGL
@@ -98,9 +100,13 @@ rustPlatform.buildRustPackage rec {
'';
postFixup = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
# We don't want the bundled libraries.
rm -rf $out/lib
patchelf $out/bin/gossip \
--add-rpath ${
lib.makeLibraryPath [
SDL2
libGL
libxkbcommon
wayland