Unverified Commit 05cbcfb1 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

usage: 2.0.5 -> 2.1.1 (#417087)

parents 09d6d4ea 5b7f1206
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
{
  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";
  };
}
})