-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshell.nix
More file actions
44 lines (40 loc) · 972 Bytes
/
shell.nix
File metadata and controls
44 lines (40 loc) · 972 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
39
40
41
42
43
44
{ pkgs }:
let
anchor-parse-idls = pkgs.writeShellScriptBin "anchor-parse-idls"
(builtins.readFile ./scripts/idl.sh);
in pkgs.mkShell {
nativeBuiltInputs = (pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.AppKit
pkgs.darwin.apple_sdk.frameworks.IOKit
pkgs.darwin.apple_sdk.frameworks.Foundation
]);
buildInputs = with pkgs;
(pkgs.lib.optionals pkgs.stdenv.isLinux ([
# solana
libudev
])) ++ [
anchor-parse-idls
rustup
cargo-deps
# cargo-watch
gh
# sdk
nodejs
yarn
python3
pkgconfig
openssl
jq
gnused
libiconv
anchor-0_17_0
spl-token-cli
] ++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.AppKit
pkgs.darwin.apple_sdk.frameworks.IOKit
pkgs.darwin.apple_sdk.frameworks.Foundation
]);
shellHook = ''
export PATH=$PATH:$HOME/.cargo/bin
'';
}