Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 841 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 pkg-config, 6 alsa-lib, 7 wl-clipboard, 8 xclip, 9}: 10 11buildGoModule rec { 12 pname = "gtt"; 13 version = "10"; 14 15 src = fetchFromGitHub { 16 owner = "eeeXun"; 17 repo = "gtt"; 18 rev = "v${version}"; 19 hash = "sha256-ghdf8UQA+SfsBiD5bPrNZM8sPE+Xhbhn18iNl3xLh8c="; 20 }; 21 22 vendorHash = "sha256-6C+++HIVwOwOmlsdwXWF/ykyK9WOlq/ktIPjRslvllk="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 alsa-lib 30 xclip 31 wl-clipboard 32 ]; 33 34 ldflags = [ 35 "-s" 36 "-w" 37 ]; 38 39 meta = { 40 description = "Google Translate TUI (Originally). Now support Apertium, Argos, Bing, ChatGPT, DeepL, Google, Reverso"; 41 homepage = "https://github.com/eeeXun/gtt"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ linuxissuper ]; 44 mainProgram = "gtt"; 45 }; 46}