Skip to content

Commit 05d8318

Browse files
committed
provide libz.so.1 in the nix-dev-shell
`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>
1 parent 6058cdc commit 05d8318

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/tools/nix-dev-shell/flake.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
# Avoid creating text files for ICEs.
2525
RUSTC_ICE = "0";
2626
# Provide `libstdc++.so.6` for the self-contained lld.
27-
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [
28-
stdenv.cc.cc.lib
29-
]}";
27+
# Provide `libz.so.1`.
28+
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [stdenv.cc.cc.lib zlib]}";
3029
};
3130
}
3231
);

src/tools/nix-dev-shell/shell.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pkgs.mkShell {
1313
# Avoid creating text files for ICEs.
1414
RUSTC_ICE = "0";
1515
# Provide `libstdc++.so.6` for the self-contained lld.
16-
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [
17-
stdenv.cc.cc.lib
18-
]}";
16+
# Provide `libz.so.1`
17+
LD_LIBRARY_PATH = "${with pkgs; lib.makeLibraryPath [stdenv.cc.cc.lib zlib]}";
1918
}

0 commit comments

Comments
 (0)