From 5fb00f682b1fcff99f07d73650c2d1e765f88ba1 Mon Sep 17 00:00:00 2001 From: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sat, 6 Jun 2026 16:53:41 +0000 Subject: [PATCH 1/2] tsx: update to node 24 --- pkgs/by-name/ts/tsx/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ts/tsx/package.nix b/pkgs/by-name/ts/tsx/package.nix index 85295a274b58..e64ce421bc5a 100644 --- a/pkgs/by-name/ts/tsx/package.nix +++ b/pkgs/by-name/ts/tsx/package.nix @@ -5,12 +5,13 @@ pnpm_10, fetchPnpmDeps, pnpmConfigHook, - nodejs-slim_22, + nodejs-slim_24, versionCheckHook, nix-update-script, }: let - pnpm' = pnpm_10.override { nodejs-slim = nodejs-slim_22; }; + nodejs-slim = nodejs-slim_24; + pnpm' = pnpm_10.override { inherit nodejs-slim; }; in stdenv.mkDerivation (finalAttrs: { pname = "tsx"; @@ -35,13 +36,13 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ - nodejs-slim_22 + nodejs-slim pnpmConfigHook pnpm' ]; buildInputs = [ - nodejs-slim_22 + nodejs-slim ]; patchPhase = '' From e196e78b5bb33c07cf7109a61146dc68aa8f961c Mon Sep 17 00:00:00 2001 From: HigherOrderLogic <73709188+HigherOrderLogic@users.noreply.github.com> Date: Sat, 6 Jun 2026 17:20:06 +0000 Subject: [PATCH 2/2] tsx: 4.21.0 -> 4.22.4 --- pkgs/by-name/ts/tsx/package.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ts/tsx/package.nix b/pkgs/by-name/ts/tsx/package.nix index e64ce421bc5a..72e6c32bb673 100644 --- a/pkgs/by-name/ts/tsx/package.nix +++ b/pkgs/by-name/ts/tsx/package.nix @@ -15,13 +15,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "tsx"; - version = "4.21.0"; + version = "4.22.4"; src = fetchFromGitHub { owner = "privatenumber"; repo = "tsx"; tag = "v${finalAttrs.version}"; - hash = "sha256-vlVRq637l84xi9Og0ryzYuu+1b/eBq13jQJIptY0u0o="; + hash = "sha256-hiUy3VQXHvzuCr+WjaRV/pUcnz3bq29lmpofqKZ/sv8="; }; pnpmDeps = fetchPnpmDeps { @@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { ; pnpm = pnpm'; fetcherVersion = 3; - hash = "sha256-7JdL2qz663+y3tzeK0LLn57vSsQ0P0d+FofRimWVjrM="; + hash = "sha256-A0KaFJNBJaMDTG9g8dj3/qZPkqg5hnRgjP0lfTg/CQY="; }; nativeBuildInputs = [ @@ -56,7 +56,11 @@ stdenv.mkDerivation (finalAttrs: { # because tsx uses semantic-release, the package.json has a placeholder # version number. this patches it to match the version of the nix package, # which in turn is the release version in github. - substituteInPlace package.json --replace-fail "0.0.0-semantic-release" "${finalAttrs.version}" + # + # also remove the prepare script, which is just used to generate LLM skills + substituteInPlace package.json \ + --replace-fail "0.0.0-semantic-release" "${finalAttrs.version}" \ + --replace-fail '"prepare": "skills-npm",' "" runHook postPatch '';