Files
OmniRoute/flake.nix
diegosouzapw 3b9c89ce59 chore(release): drop the exact provider count from the package description
The npm description carried the live provider total, so every provider PR
rewrote the same line and 25 open PRs conflicted on it alone. Use a
count-free wording (also in flake.nix, which had drifted to 160+) and turn
the docs-counts check into a STRICT guard that rejects an exact provider
count in the description instead of requiring the live one.
2026-11-13 13:07:14 -03:00

44 lines
1.5 KiB
Nix

{
description = "OmniRoute - Unified AI router with hundreds of 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_22 ships npm 10, which (a) rewrites package-lock.json on every
# install (drops the npm 11 `libc` fields, downgrades undici 7 -> 6) and
# (b) runs node-gyp for better-sqlite3 -> fails without Python -> npm
# silently prunes it, since it is an optionalDependency.
# node 24 ships npm 11: lockfile stays byte-identical and the bundled
# better-sqlite3 prebuild is used instead of a source build.
nodejs = pkgs.nodejs_24;
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
nodejs
# Real Python for node-gyp: macOS /usr/bin/python3 is an Xcode CLT
# stub that cannot exec, so any from-source native build fails.
pkgs.python3
];
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
'';
};
}
);
}