-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (37 loc) · 861 Bytes
/
shell.nix
File metadata and controls
38 lines (37 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ nixpkgs ? import <nixpkgs> { }, ... }:
let
stable = import (nixpkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "57a0c58e728a28bc21eed85055eac9724a08f69a";
sha256 = "jZM9mIChS+tdrLt3/R6WnFNJCGcD8M/TpUgxrBgAN3M=";
}) {};
in stable.mkShell rec {
buildInputs =
(with stable; [
rustup
gcc
pkg-config
lldb
cargo
rustc
clippy
openssl
freetype
expat
llvmPackages.bintools
git-lfs
git-cliff
rust-analyzer
cargo-hack
cargo-watch
just
rustfmt
]);
RUST_SRC_PATH = "${nixpkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
shellHook = ''
export RUSTUP_TOOLCHAIN="nightly";
export PATH="$CARGO_HOME:$PATH";
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${nixpkgs.lib.makeLibraryPath buildInputs}";
'';
}