forked from mirrors/nixpkgs
Merge pull request #282706 from linuxissuper/add-package/gtt
gtt: init at 8
This commit is contained in:
commit
69edbe190c
42
pkgs/by-name/gt/gtt/package.nix
Normal file
42
pkgs/by-name/gt/gtt/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue