forked from diegosouzapw/OmniRoute
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (30 loc) · 889 Bytes
/
Copy pathflake.nix
File metadata and controls
34 lines (30 loc) · 889 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
{
description = "OmniRoute - Unified AI router with 160+ providers";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
nodejs = pkgs.nodejs_22;
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
nodejs
];
shellHook = ''
echo "Welcome to OmniRoute dev environment"
export PATH="$PWD/node_modules/.bin:$PATH"
# Install dependencies if node_modules doesn't exist
if [ ! -d "node_modules" ]; then
echo "Installing dependencies..."
npm install
fi
'';
};
}
);
}