blob: 8f3e116b53242573db3e26a6db7ae4f3759cbd9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ 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";
};
}
|