Update nix

This commit is contained in:
muon 2026-06-08 20:00:18 +00:00
parent 921fa62621
commit 89896cdaee
2 changed files with 59 additions and 59 deletions

View file

@ -1,7 +1,7 @@
{
lib,
buildNpmPackage,
nodejs_20,
nodejs_22,
makeWrapper,
sources,
}:
@ -11,7 +11,7 @@ buildNpmPackage {
version = "${sources.auth2api.version}-thinking3";
src = sources.auth2api.src;
nodejs = nodejs_20;
nodejs = nodejs_22;
npmDepsHash = "sha256-lHwY5MQ0nRoOPcURzmJCiXiUxEx9ZwZJSWKbkD4ZuIA=";
@ -32,7 +32,7 @@ buildNpmPackage {
# buildNpmPackage installs the package under $out/lib/node_modules/auth2api/.
# Wire up a $out/bin/auth2api wrapper pointing at the compiled entry-point.
postInstall = ''
makeWrapper ${nodejs_20}/bin/node $out/bin/auth2api \
makeWrapper ${nodejs_22}/bin/node $out/bin/auth2api \
--add-flags "$out/lib/node_modules/auth2api/dist/index.js"
'';