Unverified Commit c94b3096 authored by Felix Bargfeldt's avatar Felix Bargfeldt Committed by GitHub
Browse files

pay-respects: modernize (#406214)

parents ff566ca9 95f3b07d
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -2,8 +2,9 @@
  lib,
  fetchFromGitea,
  rustPlatform,
  versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "pay-respects";
  version = "0.7.6";

@@ -11,16 +12,20 @@ rustPlatform.buildRustPackage rec {
    domain = "codeberg.org";
    owner = "iff";
    repo = "pay-respects";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-+50MKpZgJqjuUvJeFFv8fMILkJ3cOAN7R7kmlR+98II=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-TJP+GPkXwPvnBwiF0SCkn8NGz/xyrYjbUZKCbUUSqHQ=";

  nativeInstallCheckInputs = [ versionCheckHook ];
  doInstallCheck = true;

  meta = {
    description = "Terminal command correction, alternative to `thefuck`, written in Rust";
    description = "Terminal command correction, alternative to thefuck, written in Rust";
    homepage = "https://codeberg.org/iff/pay-respects";
    changelog = "https://codeberg.org/iff/pay-respects/src/tag/v${finalAttrs.version}/CHANGELOG.md";
    license = lib.licenses.agpl3Plus;
    maintainers = with lib.maintainers; [
      sigmasquadron
@@ -29,4 +34,4 @@ rustPlatform.buildRustPackage rec {
    ];
    mainProgram = "pay-respects";
  };
}
})