nixpkgs/pkgs/by-name/gt/gtt/package.nix
2024-02-11 18:12:18 +01:00

42 lines
823 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, alsa-lib
, wl-clipboard
, xclip
}:
buildGoModule rec {
pname = "gtt";
version = "9";
src = fetchFromGitHub {
owner = "eeeXun";
repo = "gtt";
rev = "v${version}";
hash = "sha256-WDuQ8daKA8Skto4soG9L4ChkYzV18BwVZh+AbyDyXYs=";
};
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";
};
}