HASH 63f2dd18f992
DATE 2026-05-06
SUBJECT flake: bump nixpkgs, run vercel CLI via npx
FILES 3 CHANGED
HASH 63f2dd18f992
DATE 2026-05-06
SUBJECT flake: bump nixpkgs, run vercel CLI
via npx
FILES 3 CHANGED
┌─ flake.lock ───────────────────────────────────────────────────────────────┐
│ diff --git a/flake.lock b/flake.lock │
│ index 2cff969..b00b92a 100644 │
│ --- a/flake.lock │
│ +++ b/flake.lock │
│ @@ -20,11 +20,11 @@ │
│ }, │
│ "nixpkgs": { │
│ "locked": { │
│ - "lastModified": 1752950548, │
│ - "narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=", │
│ + "lastModified": 1777954456, │
│ + "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", │
│ "owner": "NixOS", │
│ "repo": "nixpkgs", │
│ - "rev": "c87b95e25065c028d31a94f06a62927d18763fdf", │
│ + "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", │
│ "type": "github" │
│ }, │
│ "original": { │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ flake.lock ─────────────────────────┐
│ diff --git a/flake.lock b/flake.lock │
│ index 2cff969..b00b92a 100644 │
│ --- a/flake.lock │
│ +++ b/flake.lock │
│ @@ -20,11 +20,11 @@ │
│ }, │
│ "nixpkgs": { │
│ "locked": { │
│ - "lastModified": 1752950548, │
│ - "narHash": "sha256-NS6BLD0lxOrnCiEO │
│ cvQCDVPXafX1/ek1dfJHX1nUIzc=", │
│ + "lastModified": 1777954456, │
│ + "narHash": "sha256-hGdgeU2Nk87RAuZy │
│ YjyDjFL6LK7dAZN5RE9+hrDTkDU=", │
│ "owner": "NixOS", │
│ "repo": "nixpkgs", │
│ - "rev": "c87b95e25065c028d31a94f06a6 │
│ 2927d18763fdf", │
│ + "rev": "549bd84d6279f9852cae6225e37 │
│ 2cc67fb91a4c1", │
│ "type": "github" │
│ }, │
│ "original": { │
└──────────────────────────────────────────────┘
┌─ nix/pkgs/ookstats-deploy/default.nix ─────────────────────────────────────┐
│ diff --git a/nix/pkgs/ookstats-deploy/default.nix b/nix/pkgs/ookstats-deploy/defau │
│ lt.nix │
│ index e4805a9..00d1cc2 100644 │
│ --- a/nix/pkgs/ookstats-deploy/default.nix │
│ +++ b/nix/pkgs/ookstats-deploy/default.nix │
│ @@ -5,7 +5,6 @@ │
│ coreutils, │
│ jq, │
│ nodejs, │
│ - nodePackages, │
│ sqlite, │
│ gum, │
│ }: │
│ @@ -18,7 +17,6 @@ writeShellApplication { │
│ coreutils │
│ jq │
│ nodejs │
│ - nodePackages.vercel │
│ sqlite │
│ gum │
│ ]; │
│ @@ -351,7 +349,10 @@ writeShellApplication { │
│ fi │
│ } │
│ │
│ - # VERCEL DEPLOYMENT │
│ + # Pinned because Vercel's deploy endpoint enforces a minimum CLI │
│ + # version and silently breaks CI when that floor moves. Bump deliberately. │
│ + VERCEL_CLI="[email protected]" │
│ + │
│ vercelDeploy() { │
│ log info "Vercel" "Deploying to Vercel ($ENVIRONMENT)" │
│ │
│ @@ -362,20 +363,20 @@ writeShellApplication { │
│ npm ci │
│ │
│ log info "Vercel" "Pulling configuration..." │
│ - vercel pull --yes --environment="$ENVIRONMENT" --token="$VERCEL_TOKEN" │
│ + npx --yes "$VERCEL_CLI" pull --yes --environment="$ENVIRONMENT" --token │
│ ="$VERCEL_TOKEN" │
│ │
│ if [ "$ENVIRONMENT" = "production" ]; then │
│ log info "Vercel" "Building for production..." │
│ - vercel build --prod --token="$VERCEL_TOKEN" │
│ + npx --yes "$VERCEL_CLI" build --prod --token="$VERCEL_TOKEN" │
│ │
│ log info "Vercel" "Deploying to production..." │
│ - deployment_url=$(vercel deploy --prebuilt --prod --archive=tgz --toke │
│ n="$VERCEL_TOKEN") │
│ + deployment_url=$(npx --yes "$VERCEL_CLI" deploy --prebuilt --prod --a │
│ rchive=tgz --token="$VERCEL_TOKEN") │
│ else │
│ log info "Vercel" "Building for preview..." │
│ - vercel build --token="$VERCEL_TOKEN" │
│ + npx --yes "$VERCEL_CLI" build --token="$VERCEL_TOKEN" │
│ │
│ log info "Vercel" "Deploying to preview..." │
│ - deployment_url=$(vercel deploy --prebuilt --archive=tgz --token="$VER │
│ CEL_TOKEN") │
│ + deployment_url=$(npx --yes "$VERCEL_CLI" deploy --prebuilt --archive= │
│ tgz --token="$VERCEL_TOKEN") │
│ fi │
│ │
│ log info "Vercel" "Deployment complete: $deployment_url" │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...s/ookstats-deploy/default.nix ───┐
│ diff --git a/nix/pkgs/ookstats-deploy/defaul │
│ t.nix b/nix/pkgs/ookstats-deploy/default.nix │
│ index e4805a9..00d1cc2 100644 │
│ --- a/nix/pkgs/ookstats-deploy/default.nix │
│ +++ b/nix/pkgs/ookstats-deploy/default.nix │
│ @@ -5,7 +5,6 @@ │
│ coreutils, │
│ jq, │
│ nodejs, │
│ - nodePackages, │
│ sqlite, │
│ gum, │
│ }: │
│ @@ -18,7 +17,6 @@ writeShellApplication { │
│ coreutils │
│ jq │
│ nodejs │
│ - nodePackages.vercel │
│ sqlite │
│ gum │
│ ]; │
│ @@ -351,7 +349,10 @@ writeShellApplication { │
│ fi │
│ } │
│ │
│ - # VERCEL DEPLOYMENT │
│ + # Pinned because Vercel's deploy endp │
│ oint enforces a minimum CLI │
│ + # version and silently breaks CI when │
│ that floor moves. Bump deliberately. │
│ + VERCEL_CLI="[email protected]" │
│ + │
│ vercelDeploy() { │
│ log info "Vercel" "Deploying to Ver │
│ cel ($ENVIRONMENT)" │
│ │
│ @@ -362,20 +363,20 @@ writeShellApplication │
│ { │
│ npm ci │
│ │
│ log info "Vercel" "Pulling config │
│ uration..." │
│ - vercel pull --yes --environment=" │
│ $ENVIRONMENT" --token="$VERCEL_TOKEN" │
│ + npx --yes "$VERCEL_CLI" pull --ye │
│ s --environment="$ENVIRONMENT" --token="$VER │
│ CEL_TOKEN" │
│ │
│ if [ "$ENVIRONMENT" = "production │
│ " ]; then │
│ log info "Vercel" "Building for │
│ production..." │
│ - vercel build --prod --token="$V │
│ ERCEL_TOKEN" │
│ + npx --yes "$VERCEL_CLI" build - │
│ -prod --token="$VERCEL_TOKEN" │
│ │
│ log info "Vercel" "Deploying to │
│ production..." │
│ - deployment_url=$(vercel deploy │
│ --prebuilt --prod --archive=tgz --token="$VE │
│ RCEL_TOKEN") │
│ + deployment_url=$(npx --yes "$VE │
│ RCEL_CLI" deploy --prebuilt --prod --archive │
│ =tgz --token="$VERCEL_TOKEN") │
│ else │
│ log info "Vercel" "Building for │
│ preview..." │
│ - vercel build --token="$VERCEL_T │
│ OKEN" │
│ + npx --yes "$VERCEL_CLI" build - │
│ -token="$VERCEL_TOKEN" │
│ │
│ log info "Vercel" "Deploying to │
│ preview..." │
│ - deployment_url=$(vercel deploy │
│ --prebuilt --archive=tgz --token="$VERCEL_TO │
│ KEN") │
│ + deployment_url=$(npx --yes "$VE │
│ RCEL_CLI" deploy --prebuilt --archive=tgz -- │
│ token="$VERCEL_TOKEN") │
│ fi │
│ │
│ log info "Vercel" "Deployment com │
│ plete: $deployment_url" │
└──────────────────────────────────────────────┘
┌─ nix/shell.nix ────────────────────────────────────────────────────────────┐
│ diff --git a/nix/shell.nix b/nix/shell.nix │
│ index 6d4d34e..56012f4 100644 │
│ --- a/nix/shell.nix │
│ +++ b/nix/shell.nix │
│ @@ -15,7 +15,6 @@ │
│ inherit (pkgs) nodejs just sqlite awscli2 go gcc pkg-config sqld yarn; │
│ inherit (pkgs.python3Packages) python requests; │
│ inherit (config.packages) ookstats; │
│ - inherit (pkgs.nodePackages) vercel; │
│ }; │
│ }; │
│ }; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ nix/shell.nix ──────────────────────┐
│ diff --git a/nix/shell.nix b/nix/shell.nix │
│ index 6d4d34e..56012f4 100644 │
│ --- a/nix/shell.nix │
│ +++ b/nix/shell.nix │
│ @@ -15,7 +15,6 @@ │
│ inherit (pkgs) nodejs just sqlite a │
│ wscli2 go gcc pkg-config sqld yarn; │
│ inherit (pkgs.python3Packages) pyth │
│ on requests; │
│ inherit (config.packages) ookstats; │
│ - inherit (pkgs.nodePackages) vercel; │
│ }; │
│ }; │
│ }; │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET