Skip to content

Commit 0b899cf

Browse files
committed
chore: full rust toolchain in jailed agents
1 parent f3ad220 commit 0b899cf

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ result
88
dist
99
.cargo/
1010
.local/
11+
.crush/
1112
# These are backup files generated by rustfmt
1213
**/*.rs.bk
1314
# MSVC Windows builds of rustc generate these, which store debugging information

flake.nix

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -312,24 +312,26 @@
312312
system:
313313
let
314314
env = sharedEnvFor system;
315+
devTools = with env.pkgs; [
316+
# biome python3 sass strace
317+
cachix # Nix binary cache
318+
kotlin-language-server # Kotlin LSP
319+
lightningcss # CSS linter & optimizer
320+
scss-lint # SCSS linter
321+
taplo # TOML LSP
322+
typescript-language-server # TypeScript LSP
323+
vscode-langservers-extracted # HTML/CSS/JS(ON)
324+
yaml-language-server # YAML LSP
325+
];
315326
in
316327
{
317328
default = env.pkgs.mkShell {
318-
packages = with env.pkgs; [
319-
# biome python3 sass strace
320-
cachix # Nix binary cache
321-
kotlin-language-server # Kotlin LSP
322-
lightningcss # CSS linter & optimizer
323-
scss-lint # SCSS linter
324-
taplo # TOML LSP
325-
typescript-language-server # TypeScript LSP
326-
vscode-langservers-extracted # HTML/CSS/JS(ON)
327-
yaml-language-server # YAML LSP
329+
packages = devTools ++ [
328330
(agents-jail.lib.${system}.mkCrush {
329-
extraPkgs = env.commonNativeBuildInputs ++ env.androidNativeBuildInputs;
331+
extraPkgs = devTools ++ env.commonNativeBuildInputs ++ env.androidNativeBuildInputs;
330332
})
331333
(agents-jail.lib.${system}.mkOpencode {
332-
extraPkgs = env.commonNativeBuildInputs ++ env.androidNativeBuildInputs;
334+
extraPkgs = devTools ++ env.commonNativeBuildInputs ++ env.androidNativeBuildInputs;
333335
})
334336
];
335337
nativeBuildInputs = env.commonNativeBuildInputs ++ env.androidNativeBuildInputs;

0 commit comments

Comments
 (0)