File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
33 fetchFromGitHub ,
4- rustPlatform ,
54 nix-update-script ,
5+ rustPlatform ,
6+ stdenv ,
67} :
7-
88rustPlatform . 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
You can’t perform that action at this time.
0 commit comments