oxfmt: 0.27.0 -> 0.40.0 (#499724)

This commit is contained in:
OTABI Tomoya
2026-03-17 01:33:28 +00:00
committed by GitHub
+4 -12
View File
@@ -21,33 +21,25 @@
# A pure Rust build would lack the Prettier plugin functionality.
stdenv.mkDerivation (finalAttrs: {
pname = "oxfmt";
version = "0.27.0";
version = "0.40.0";
src = fetchFromGitHub {
owner = "oxc-project";
repo = "oxc";
tag = "oxfmt_v${finalAttrs.version}";
hash = "sha256-EAM1DxA/TqnIRN5Tlvg5/jvbyOUtSuwQ4RCBeO9esCw=";
hash = "sha256-A2cq1WgZg8csNGB3yFNo21450f46n4ZVblke1yqlBCc=";
};
# Remove patchedDependencies from both workspace and lockfile
# to avoid LOCKFILE_CONFIG_MISMATCH error
postPatch = ''
substituteInPlace pnpm-workspace.yaml pnpm-lock.yaml \
--replace-fail "patchedDependencies:" "_patchedDependencies:"
'';
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-okwkhcT6mekIvo52T8eSrXUcp/LQhcEYvHyIc5CLdrE=";
hash = "sha256-Oz9u2+5lq+z9A81BEn2T4jvVMqf1uNXip+OH4AxiTG0=";
};
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs) pname version src;
pnpm = pnpm_10;
fetcherVersion = 2;
hash = "sha256-GOsSTfM93VgGhVlgzXhJIJG9MSf306cEnRru/aTA+oY=";
prePnpmInstall = finalAttrs.postPatch;
hash = "sha256-iO1MRUTO8Ce1YGH/qDWQmdfvTfvsmgwGBaybWw3wiu0=";
};
nativeBuildInputs = [