-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (30 loc) · 720 Bytes
/
shell.nix
File metadata and controls
38 lines (30 loc) · 720 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
{
pkgs ? import <nixpkgs> {},
srcpkgs ? import ./packages.nix {}
}:
pkgs.mkShell {
packages = with pkgs; [
## funzzy local
# srcpkgs.local
rustc
cargo
rustfmt
libiconv
gnused # for macos
yq-go # jq for yaml
fzf # Used in scripts
# For development install latest version of funzzy
# copkgs.funzzyNightly
# if system contains "darwin" then darwin.apple_sdk.frameworks.CoreServices else null
# Fix error: `ld: framework not found CoreServices`
(if system == "x86_64-darwin" ||
system == "aarch64-darwin"
then darwin.apple_sdk.frameworks.CoreServices
else null)
];
shellHook = ''
echo "$@"
cargo update
cargo build
'';
}