Skip to content

Commit 8980b36

Browse files
committed
feat: add support for nix development enviroment
1 parent bbe3362 commit 8980b36

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Check if nix command is available before trying to use flake
2+
if command -v nix >/dev/null 2>&1; then
3+
use flake
4+
fi

flake.nix

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
description = "Roo-Code development environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
6+
};
7+
8+
outputs = { self, nixpkgs, ... }: let
9+
systems = [ "aarch64-darwin" "x86_64-linux" ];
10+
11+
forAllSystems = nixpkgs.lib.genAttrs systems;
12+
13+
mkDevShell = system: let
14+
pkgs = import nixpkgs { inherit system; };
15+
in pkgs.mkShell {
16+
name = "roo-code";
17+
18+
packages = with pkgs; [
19+
nodejs_20
20+
corepack_20
21+
libnotify
22+
];
23+
};
24+
in {
25+
devShells = forAllSystems (system: {
26+
default = mkDevShell system;
27+
});
28+
};
29+
}
30+

0 commit comments

Comments
 (0)