Loading pkgs/by-name/nu/nufmt/package.nix +7 −4 Original line number Diff line number Diff line Loading @@ -7,26 +7,29 @@ }: rustPlatform.buildRustPackage { pname = "nufmt"; version = "0-unstable-2025-06-19"; version = "0-unstable-2025-12-29"; src = fetchFromGitHub { owner = "nushell"; repo = "nufmt"; rev = "35962223fbd4c1a924b4ccfb8c7ad81fe2863b86"; hash = "sha256-2WgqKQBZRMqUyWq0qm+d8TUT/iAQ1LZjhllBKqimp+Q="; rev = "c03e166babe7b77f1a80a7916ab1e8e2437bba06"; hash = "sha256-VZiRmo9/jxAFCSr2bHrf89qb6o1Obwt2+O3NrIrokZo="; }; nativeBuildInputs = [ rustPlatform.bindgenHook ]; cargoHash = "sha256-KDXC2/1GcJL6qH+L/FzzQCA7kJigtKOfxVDLv5qXYao="; cargoHash = "sha256-BpKhgF3LUQRL1mNCR5Iq4/Q+eRaOf+JgQCuUfloRhzk="; # NOTE: Patch follows similar intention upstream https://github.com/nushell/nufmt/commit/35962223fbd4c1a924b4ccfb8c7ad81fe2863b86 postPatch = '' substituteInPlace tests/main.rs --replace-fail \ 'const TEST_BINARY: &str = "target/debug/nufmt";' \ 'const TEST_BINARY: &str = "target/${stdenv.hostPlatform.rust.rustcTarget}/release/nufmt";' substituteInPlace tests/ground_truth.rs --replace-fail \ 'const TEST_BINARY: &str = "target/debug/nufmt";' \ 'const TEST_BINARY: &str = "target/${stdenv.hostPlatform.rust.rustcTarget}/release/nufmt";' ''; passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; Loading Loading
pkgs/by-name/nu/nufmt/package.nix +7 −4 Original line number Diff line number Diff line Loading @@ -7,26 +7,29 @@ }: rustPlatform.buildRustPackage { pname = "nufmt"; version = "0-unstable-2025-06-19"; version = "0-unstable-2025-12-29"; src = fetchFromGitHub { owner = "nushell"; repo = "nufmt"; rev = "35962223fbd4c1a924b4ccfb8c7ad81fe2863b86"; hash = "sha256-2WgqKQBZRMqUyWq0qm+d8TUT/iAQ1LZjhllBKqimp+Q="; rev = "c03e166babe7b77f1a80a7916ab1e8e2437bba06"; hash = "sha256-VZiRmo9/jxAFCSr2bHrf89qb6o1Obwt2+O3NrIrokZo="; }; nativeBuildInputs = [ rustPlatform.bindgenHook ]; cargoHash = "sha256-KDXC2/1GcJL6qH+L/FzzQCA7kJigtKOfxVDLv5qXYao="; cargoHash = "sha256-BpKhgF3LUQRL1mNCR5Iq4/Q+eRaOf+JgQCuUfloRhzk="; # NOTE: Patch follows similar intention upstream https://github.com/nushell/nufmt/commit/35962223fbd4c1a924b4ccfb8c7ad81fe2863b86 postPatch = '' substituteInPlace tests/main.rs --replace-fail \ 'const TEST_BINARY: &str = "target/debug/nufmt";' \ 'const TEST_BINARY: &str = "target/${stdenv.hostPlatform.rust.rustcTarget}/release/nufmt";' substituteInPlace tests/ground_truth.rs --replace-fail \ 'const TEST_BINARY: &str = "target/debug/nufmt";' \ 'const TEST_BINARY: &str = "target/${stdenv.hostPlatform.rust.rustcTarget}/release/nufmt";' ''; passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; Loading