File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 fetchFromGitHub ,
44 nix-update-script ,
55 rustPlatform ,
6- stdenv ,
76} :
87rustPlatform . buildRustPackage {
98 pname = "nufmt" ;
10- version = "0-unstable-2025-06-19 " ;
9+ version = "0-unstable-2025-12-29 " ;
1110
1211 src = fetchFromGitHub {
1312 owner = "nushell" ;
1413 repo = "nufmt" ;
15- rev = "35962223fbd4c1a924b4ccfb8c7ad81fe2863b86 " ;
16- hash = "sha256-2WgqKQBZRMqUyWq0qm+d8TUT/iAQ1LZjhllBKqimp+Q =" ;
14+ rev = "c03e166babe7b77f1a80a7916ab1e8e2437bba06 " ;
15+ hash = "sha256-VZiRmo9/jxAFCSr2bHrf89qb6o1Obwt2+O3NrIrokZo =" ;
1716 } ;
1817
1918 nativeBuildInputs = [
2019 rustPlatform . bindgenHook
2120 ] ;
2221
23- cargoHash = "sha256-KDXC2/1GcJL6qH+L/FzzQCA7kJigtKOfxVDLv5qXYao=" ;
24-
25- # NOTE: Patch follows similar intention upstream https://github.com/nushell/nufmt/commit/35962223fbd4c1a924b4ccfb8c7ad81fe2863b86
26- postPatch = ''
27- substituteInPlace tests/main.rs --replace-fail \
28- 'const TEST_BINARY: &str = "target/debug/nufmt";' \
29- 'const TEST_BINARY: &str = "target/${ stdenv . hostPlatform . rust . rustcTarget } /release/nufmt";'
30- '' ;
22+ cargoHash = "sha256-BpKhgF3LUQRL1mNCR5Iq4/Q+eRaOf+JgQCuUfloRhzk=" ;
3123
3224 passthru . updateScript = nix-update-script { extraArgs = [ "--version=branch" ] ; } ;
3325
You can’t perform that action at this time.
0 commit comments