Unverified Commit 7b4bae60 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

gpg-tui: migrate to by-name, refactor (#502645)

parents 55a6fddc a54161ac
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -8,20 +8,20 @@
  pkg-config,
  python3,
  libiconv,
  libresolv,
  darwin,
  x11Support ? true,
  libxcb,
  libxkbcommon,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "gpg-tui";
  version = "0.11.1";

  src = fetchFromGitHub {
    owner = "orhun";
    repo = "gpg-tui";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-qGm0eHpVFGn8tNdEnmQ4oIfjCxyixMFYdxih7pHvGH0=";
  };

@@ -44,13 +44,13 @@ rustPlatform.buildRustPackage rec {
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    libiconv
    libresolv
    darwin.libresolv
  ];

  meta = {
    description = "Terminal user interface for GnuPG";
    homepage = "https://github.com/orhun/gpg-tui";
    changelog = "https://github.com/orhun/gpg-tui/blob/${src.rev}/CHANGELOG.md";
    changelog = "https://github.com/orhun/gpg-tui/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      dotlambda
@@ -58,4 +58,4 @@ rustPlatform.buildRustPackage rec {
    ];
    mainProgram = "gpg-tui";
  };
}
})
+0 −4
Original line number Diff line number Diff line
@@ -1788,10 +1788,6 @@ with pkgs;

  ghidra-bin = callPackage ../tools/security/ghidra { };

  gpg-tui = callPackage ../tools/security/gpg-tui {
    inherit (darwin) libresolv;
  };

  hocr-tools = with python3Packages; toPythonApplication hocr-tools;

  hopper = qt5.callPackage ../development/tools/analysis/hopper { };