Skip to content

Commit

Permalink
provide libz.so.1 in the nix-dev-shell
Browse files Browse the repository at this point in the history
`libz.so.1` is needed for some (?) things...

i personally found myself in need of it when running `x t linkchecker`,
which failed when running cargo build script or something.

although there are also mentions of rustc itself needing it:
<NixOS/nixpkgs#92946>
  • Loading branch information
WaffleLapkin committed Dec 9, 2024
1 parent 6058cdc commit 05d8318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/tools/nix-dev-shell/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
# Avoid creating text files for ICEs.
RUSTC_ICE = "0";
# Provide `libstdc++.so.6` for the self-contained lld.
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [
stdenv.cc.cc.lib
]}";
# Provide `libz.so.1`.
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [stdenv.cc.cc.lib zlib]}";
};
}
);
Expand Down
5 changes: 2 additions & 3 deletions src/tools/nix-dev-shell/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pkgs.mkShell {
# Avoid creating text files for ICEs.
RUSTC_ICE = "0";
# Provide `libstdc++.so.6` for the self-contained lld.
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [
stdenv.cc.cc.lib
]}";
# Provide `libz.so.1`
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [stdenv.cc.cc.lib zlib]}";
}

0 comments on commit 05d8318

Please sign in to comment.