emaryn 2025-06-16 07:16:23 +08:00
parent 4e08736484
commit 5b7f120650

View File

@ -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";
};
}
})