depot/third_party/nixpkgs/pkgs/by-name/gt/gtt/package.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +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";
};
}