Bump to nixos-26.05, Node 26 LTS, and pnpm 11

- nixpkgs: nixos-25.11 -> nixos-26.05
- Node: nodejs_22 -> nodejs_26; @types/node ^25 -> ^26
- pnpm: pin pnpm_11 in build and devShell (pnpm_10 is marked insecure
  in 26.05); packageManager pnpm@10.28.0 -> pnpm@11.27.0
- Migrate to top-level fetchPnpmDeps/pnpmConfigHook and
  fetcherVersion 4 (v1 is removed in 26.11); regenerate deps hash
- Add pnpm-workspace.yaml declining dependency build scripts, which
  pnpm 11 requires to be decided explicitly
- Add CLAUDE.md with layout, commands, and update checklist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pleb
2026-11-16 10:10:42 -08:00
co-authored by Claude Opus 5.5
parent 30146c65ce
commit 741144d300
6 changed files with 288 additions and 198 deletions
+11 -9
View File
@@ -2,7 +2,7 @@
description = "Nostr relay Prometheus exporter";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
};
outputs = { self, nixpkgs }:
@@ -28,15 +28,17 @@
inherit src;
nativeBuildInputs = [
pkgs.nodejs_22
pkgs.pnpm.configHook
pkgs.nodejs_26
pkgs.pnpm_11
pkgs.pnpmConfigHook
pkgs.makeWrapper
];
pnpmDeps = pkgs.pnpm.fetchDeps {
pnpmDeps = pkgs.fetchPnpmDeps {
inherit pname version src;
fetcherVersion = 1;
hash = "sha256-rZhEXQcRPS5pHdXNfrYeTI3zxkqtJjcyaGgrmzwFaHA=";
pnpm = pkgs.pnpm_11;
fetcherVersion = 4;
hash = "sha256-M2Wa9KPZRf+/vFUyPYkMed4tLmrtGFEYZcIJVR2Jj6A=";
};
buildPhase = ''
@@ -49,7 +51,7 @@
runHook preInstall
mkdir -p $out/app $out/bin
cp -r dist package.json node_modules $out/app/
makeWrapper ${pkgs.nodejs_22}/bin/node $out/bin/relay-exporter \
makeWrapper ${pkgs.nodejs_26}/bin/node $out/bin/relay-exporter \
--set NODE_ENV production \
--add-flags "$out/app/dist/index.js"
runHook postInstall
@@ -81,8 +83,8 @@
{
default = pkgs.mkShell {
packages = [
pkgs.nodejs_22
pkgs.pnpm_10
pkgs.nodejs_26
pkgs.pnpm_11
];
};
});