3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #282706 from linuxissuper/add-package/gtt

gtt: init at 8
This commit is contained in:
kirillrdy 2024-01-24 06:57:16 +09:00 committed by GitHub
commit 69edbe190c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,42 @@
{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, alsa-lib
, wl-clipboard
, xclip
}:
buildGoModule rec {
pname = "gtt";
version = "8";
src = fetchFromGitHub {
owner = "eeeXun";
repo = "gtt";
rev = "v${version}";
hash = "sha256-HC1cz2CAjyuirzhn720RD9P0gFjtP+Dh1jTniDCWBz8=";
};
vendorHash = "sha256-5Uwi1apowHoUtvkSgmUV9WbfpVQFTqJ9GA2sRnC5nFw=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
alsa-lib
xclip
wl-clipboard
];
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Google Translate TUI (Originally). Now support Apertium, Argos, Bing, ChatGPT, DeepL, Google, Reverso";
homepage = "https://github.com/eeeXun/gtt";
license = licenses.mit;
maintainers = with maintainers; [ linuxissuper ];
mainProgram = "gtt";
};
}