forked from josh-project/josh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
31 lines (29 loc) · 814 Bytes
/
shell.nix
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
with (import <nixpkgs> {});
let
extra_deps = if stdenv.isDarwin then [
darwin.apple_sdk.frameworks.Security
] else [];
pkgs = import ( fetchTarball {
name = "nixos-21.11";
url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz";
# Hash obtained using `nix-prefetch-url --unpack <url>`
sha256 = "162dywda2dvfj1248afxc45kcrg83appjd0nmdb541hl7rnncf02";
}) {};
rust_channel = nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
in
pkgs.mkShell {
buildInputs = [
pkgs.git
pkgs.tree
pkgs.cargo
pkgs.rustc
pkgs.trunk
pkgs.rustfmt
pkgs.libiconv
pkgs.openssl.dev
pkgs.pkgconfig
pkgs.python39Packages.cram
pkgs.nodejs-17_x
] ++ extra_deps;
RUST_BACKTRACE = 1;
}