Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: oxfmt 0 -> 1 attrpath: oxfmt Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/w4p00sc2rmmivr7ip74c9irm9jischki-packages.json.drv building '/nix/store/w4p00sc2rmmivr7ip74c9irm9jischki-packages.json.drv'... Going to be running update for following packages: - oxfmt-0.40.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - oxfmt-0.40.0: UPDATING ... - oxfmt-0.40.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ox/oxfmt/package.nix b/pkgs/by-name/ox/oxfmt/package.nix index fdbacb66033c..c61ec0853e97 100644 --- a/pkgs/by-name/ox/oxfmt/package.nix +++ b/pkgs/by-name/ox/oxfmt/package.nix @@ -21,25 +21,25 @@ # A pure Rust build would lack the Prettier plugin functionality. stdenv.mkDerivation (finalAttrs: { pname = "oxfmt"; - version = "0.40.0"; + version = "0.46.0"; src = fetchFromGitHub { owner = "oxc-project"; repo = "oxc"; tag = "oxfmt_v${finalAttrs.version}"; - hash = "sha256-A2cq1WgZg8csNGB3yFNo21450f46n4ZVblke1yqlBCc="; + hash = "sha256-XE6Acf/YMm6WTUTT/jwBqs5Awu0IVX0j6TR8ZBQ5m3U="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-Oz9u2+5lq+z9A81BEn2T4jvVMqf1uNXip+OH4AxiTG0="; + hash = "sha256-JQ6ZVtnn5sdQXcKbWyZotkyReHrCSI8X42ynKq6pOSQ="; }; pnpmDeps = fetchPnpmDeps { inherit (finalAttrs) pname version src; pnpm = pnpm_10; fetcherVersion = 2; - hash = "sha256-iO1MRUTO8Ce1YGH/qDWQmdfvTfvsmgwGBaybWw3wiu0="; + hash = "sha256-uDrqMGdC+tUP6AiY6lm4NJZYCaOoCAXqi3oRfUK8XQo="; }; nativeBuildInputs = [ An auto update branch exists with message `oxfmt: 0.40.0 -> 0.45.0`. New version is 0.46.0. The auto update branch does not match or exceed the new version. Old version 0.40.0" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, fetchPnpmDeps, cargo, cmake, makeBinaryWrapper, nodejs_24, nodejs-slim, pnpmConfigHook, pnpm_10, rustPlatform, rustc, versionCheckHook, nix-update-script, }: # Build with pnpm instead of buildRustPackage because Prettier integration # requires the JavaScript runtime and npm dependencies. # A pure Rust build would lack the Prettier plugin functionality. stdenv.mkDerivation (finalAttrs: { pname = "oxfmt"; version = "0.45.0"; src = fetchFromGitHub { owner = "oxc-project"; repo = "oxc"; tag = "oxfmt_v${finalAttrs.version}"; hash = "sha256-RMADw7oEf407J7/KDmIma0k3JKALMBkLqp9pyE+uRkA="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; hash = "sha256-Xla3mPOkBIfA4BMd+3/lO3mXy4V96DgyT+CzuhTTAd0="; }; pnpmDeps = fetchPnpmDeps { inherit (finalAttrs) pname version src; pnpm = pnpm_10; fetcherVersion = 2; hash = "sha256-vcTdeNh5+hzqzB9PXpRBeY+aG9LjbtaEfRkDWxIsIIc="; }; nativeBuildInputs = [ cargo cmake makeBinaryWrapper nodejs_24 pnpmConfigHook pnpm_10 rustPlatform.cargoSetupHook rustc ]; # cmake is only needed for libmimalloc-sys2 crate, not for top-level build dontUseCmakeConfigure = true; env.OXC_VERSION = finalAttrs.version; buildPhase = '' runHook preBuild pnpm --filter oxfmt-app run build runHook postBuild ''; installPhase = '' runHook preInstall local outPath=$out/lib/oxfmt mkdir -p $outPath $out/bin # Reinstall production dependencies only find -name 'node_modules' -type d -exec rm -rf {} \; || true pnpm --filter oxfmt-app install --offline --prod --ignore-scripts cp -r apps/oxfmt/dist $outPath/ cp -rL apps/oxfmt/node_modules $outPath/ cp npm/oxfmt/configuration_schema.json $outPath/ makeWrapper ${lib.getExe nodejs-slim} $out/bin/oxfmt \ --add-flags $outPath/dist/cli.js runHook postInstall ''; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=^oxfmt_v([0-9.]+)$" ]; }; meta = { description = "High-performance formatter for the JavaScript ecosystem"; homepage = "https://oxc.rs/docs/guide/usage/formatter"; downloadPage = "https://github.com/oxc-project/oxc"; changelog = "https://github.com/oxc-project/oxc/blob/${finalAttrs.src.tag}/apps/oxfmt/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; mainProgram = "oxfmt"; inherit (nodejs-slim.meta) platforms; }; })