Skip to content

Commit

Permalink
nix: Fix webrtc-sys and libstdc++ build errors in development shell (#…
Browse files Browse the repository at this point in the history
…22938)

Closes #22937

- Added bzip2 package to the build inputs
- Set LD_LIBRARY_PATH environment variable to stdenv.cc.cc.lib

Release Notes:

- N/A
  • Loading branch information
AidanV authored Jan 10, 2025
1 parent a1cedbe commit 1f84c1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pkgs.mkShell rec {

buildInputs =
[
pkgs.bzip2
pkgs.curl
pkgs.fontconfig
pkgs.freetype
Expand All @@ -41,6 +42,8 @@ pkgs.mkShell rec {
]
++ lib.optional pkgs.stdenv.hostPlatform.isDarwin pkgs.apple-sdk_15;

LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";

# We set SDKROOT and DEVELOPER_DIR to the Xcode ones instead of the nixpkgs ones,
# because we need Swift 6.0 and nixpkgs doesn't have it.
# Xcode is required for development anyways
Expand Down

0 comments on commit 1f84c1b

Please sign in to comment.