Skip to content

Commit 7e35784

Browse files
committed
Add cargo and cargo-release in shell.nix
1 parent 3fb3eac commit 7e35784

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shell.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pkgs.mkShell {
99
git
1010
mypy
1111
neovim
12-
# rustup # error on Linux: /lib64/libc.so.6: version `GLIBC_2.14' not found
12+
cargo
1313
rust-analyzer
1414
tmux
1515
vim-vint
@@ -21,6 +21,9 @@ pkgs.mkShell {
2121
])
2222
++ stdenv.lib.optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
2323
CoreServices
24+
])
25+
++ stdenv.lib.optionals stdenv.isLinux (with pkgs; [
26+
cargo-release # build error on macOS: "iconv.h" not found.
2427
]);
2528

2629
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-framework CoreFoundation";

0 commit comments

Comments
 (0)