From 4f6d72e2472eb965ded3171f128027e622888250 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 7 Jan 2026 17:49:06 +0000 Subject: [PATCH] oxfmt: include `tsgolint` in the `PATH` when using `oxfmt` in the context of something like `treefmt-nix` where it is invoked with `nix flake check`, I noticed that it fails when `oxfmt` isn't already in the `PATH`. This commit ensures that `tsgolint` is always in the `PATH` of the wrapped binary. --- pkgs/by-name/ox/oxfmt/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ox/oxfmt/package.nix b/pkgs/by-name/ox/oxfmt/package.nix index 881f4036eb26..bf65cec96980 100644 --- a/pkgs/by-name/ox/oxfmt/package.nix +++ b/pkgs/by-name/ox/oxfmt/package.nix @@ -14,6 +14,7 @@ rustc, versionCheckHook, nix-update-script, + tsgolint, }: # Build with pnpm instead of buildRustPackage because Prettier integration @@ -89,6 +90,7 @@ stdenv.mkDerivation (finalAttrs: { cp npm/oxfmt/configuration_schema.json $outPath/ makeWrapper ${lib.getExe nodejs-slim} $out/bin/oxfmt \ + --prefix PATH : "${lib.makeBinPath [ tsgolint ]}" \ --add-flags $outPath/dist/cli.js runHook postInstall