File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments