diff --git a/pkgs/by-name/us/usage/package.nix b/pkgs/by-name/us/usage/package.nix index 9a8c5edb764a..364b88c7b9f3 100644 --- a/pkgs/by-name/us/usage/package.nix +++ b/pkgs/by-name/us/usage/package.nix @@ -1,27 +1,26 @@ { lib, + stdenv, rustPlatform, fetchFromGitHub, - stdenv, installShellFiles, nix-update-script, usage, testers, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "usage"; - version = "2.0.5"; + version = "2.1.1"; src = fetchFromGitHub { owner = "jdx"; repo = "usage"; - rev = "v${version}"; - hash = "sha256-No/BDBW/NRnF81UOuAMrAs4cXEdzEAxnmkn67mReUcM="; + tag = "v${finalAttrs.version}"; + hash = "sha256-aMO/3geF1iFnMi0ZqBdnikp/Qh25vqpeaxdTiQtt5yI="; }; - useFetchCargoVendor = true; - cargoHash = "sha256-W/CuXzwacarxgVv12TMVfo7Fr9qKJ7aZIO8xf4SygNA="; + cargoHash = "sha256-0NQZtT3xz4MaqY8ehKzy/cpDJlE5eWIixi3IropK11w="; postPatch = '' substituteInPlace ./examples/mounted.sh \ @@ -45,9 +44,9 @@ rustPlatform.buildRustPackage rec { meta = { homepage = "https://usage.jdx.dev"; description = "Specification for CLIs"; - changelog = "https://github.com/jdx/usage/releases/tag/v${version}"; + changelog = "https://github.com/jdx/usage/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ konradmalik ]; mainProgram = "usage"; }; -} +})