mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
43 lines
823 B
Nix
43 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";
|
|
};
|
|
}
|