Skip to content

Commit

Permalink
chore(nix): fix missing zlib in nix devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Jul 25, 2024
1 parent c499252 commit d9bc76b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pkgs.buildEnv {
rustup
pkg-config
openssl
zlib
(glibcLocales.override { locales = [ "en_US.UTF-8" ]; })
] ++ lib.optional stdenv.isDarwin [ Security libiconv ];
passthru = with pkgs; {
Expand All @@ -27,5 +28,6 @@ pkgs.buildEnv {
CURL_CA_BUNDLE = "${cacert}/etc/ca-bundle.crt";
CARGO_TERM_COLOR = "always";
RUST_BACKTRACE = "full";
LD_LIBRARY_PATH = "${lib.makeLibraryPath [ zlib ]}";
};
}
4 changes: 3 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ let env = (import ./default.nix scope);

in pkgs.mkShell {
# also install qemu into the dev shell, for testing
packages = with pkgs; [ qemu gdb direnv just cargo-nextest ];
packages = with pkgs; [ qemu gdb direnv just cargo-nextest ]
++ env.buildInputs
++ env.nativeBuildInputs;

LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
LC_ALL = "en_US.UTF-8";
Expand Down

0 comments on commit d9bc76b

Please sign in to comment.