-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshell.nix
More file actions
68 lines (59 loc) · 1.37 KB
/
shell.nix
File metadata and controls
68 lines (59 loc) · 1.37 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
pkgs ? import <nixpkgs> { },
}:
let
nodejs_lts = pkgs.nodejs_24;
plenary-nvim = pkgs.vimPlugins.plenary-nvim;
in
pkgs.mkShell rec {
name = "flemma-dev-shell";
shellHook = ''
PROJECT_ROOT=$(pwd)
export PROJECT_ROOT
PLENARY_PATH=${plenary-nvim}
export PLENARY_PATH
'';
buildInputs = with pkgs; [
bubblewrap
gh
google-cloud-sdk
imagemagick
libsecret
links2
nodejs_lts.pkgs.pnpm
socat
vhs
# Neovim plug-ins
plenary-nvim
# Lua tools
lua-language-server
lua54Packages.luacheck
(writeShellApplication {
name = "flemma-fmt";
runtimeInputs = [
nixfmt-tree
nodejs_lts.pkgs.prettier
stylua
];
text = ''
treefmt
find . -name "*.lua" -print0 | xargs -0 \
stylua
find . -name "*.md" -not -path '*/.claude/*' -print0 | xargs -0 \
prettier --write
'';
})
(writeShellApplication {
name = "flemma-amp";
text = "exec pnpm --silent --package=@sourcegraph/amp@latest dlx -- amp \"$@\"";
})
(writeShellApplication {
name = "flemma-claude";
text = "exec pnpm --silent --package=@anthropic-ai/claude-code@latest dlx -- claude \"$@\"";
})
(writeShellApplication {
name = "flemma-codex";
text = "exec pnpm --silent --package=@openai/codex dlx -- codex \"$@\"";
})
];
}