Skip to content

Commit 49b4c51

Browse files
authored
nufmt: 0-unstable-2025-04-28 -> 0-unstable-2025-05-23 (#408552)
2 parents 814476e + 82d5578 commit 49b4c51

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pkgs/by-name/nu/nufmt/package.nix

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
{
22
lib,
33
fetchFromGitHub,
4-
rustPlatform,
54
nix-update-script,
5+
rustPlatform,
6+
stdenv,
67
}:
7-
88
rustPlatform.buildRustPackage {
99
pname = "nufmt";
10-
version = "0-unstable-2025-04-28";
10+
version = "0-unstable-2025-05-23";
1111

1212
src = fetchFromGitHub {
1313
owner = "nushell";
1414
repo = "nufmt";
15-
rev = "feafe695659c4d5153018a78fad949d088d8a480";
16-
hash = "sha256-4FnZIlZWuvSAXMQbdyONNrgIuMxH5Vq3MFbb8J2CnHM=";
15+
rev = "62fd38af2f6536bb19ecc78a4dd0f0e1245c0939";
16+
hash = "sha256-JG8XCXEdjVERQ9f6ZsYCLXVGN85qPWCQhS2svJYW390=";
1717
};
1818

1919
nativeBuildInputs = [
2020
rustPlatform.bindgenHook
2121
];
2222

2323
useFetchCargoVendor = true;
24-
cargoHash = "sha256-zS4g/uMh1eOoPo/RZfanL6afCEU5cnyzHrIqkvuQVrg=";
24+
cargoHash = "sha256-KDXC2/1GcJL6qH+L/FzzQCA7kJigtKOfxVDLv5qXYao=";
25+
26+
# NOTE: Patch follows similar intention upstream https://github.com/nushell/nufmt/commit/62fd38af2f6536bb19ecc78a4dd0f0e1245c0939
27+
postPatch = ''
28+
substituteInPlace tests/main.rs --replace-fail \
29+
'const TEST_BINARY: &str = "target/debug/nufmt";' \
30+
'const TEST_BINARY: &str = "target/${stdenv.hostPlatform.rust.rustcTarget}/release/nufmt";'
31+
'';
2532

2633
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
2734

0 commit comments

Comments
 (0)