Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
nodejs = pkgs.nodejs_22;
# 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 = ''
Expand Down