biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / transifex-cli / default.nix
blobda06ce3929184f6d9261bfc78a54ae3ae5de5027
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "transifex-cli";
8   version = "1.6.17";
10   src = fetchFromGitHub {
11     owner = "transifex";
12     repo = "cli";
13     rev = "v${version}";
14     sha256 = "sha256-jzAt/SalItGG0KI3GZb4/pT4T7oHwCji2bjNR1BTJXI=";
15   };
17   vendorHash = "sha256-3gi2ysIb5256CdmtX38oIfeDwNCQojK+YB9aEm8H01Q=";
19   ldflags = [
20     "-s" "-w" "-X 'github.com/transifex/cli/internal/txlib.Version=${version}'"
21   ];
23   postInstall = ''
24     mv $out/bin/cli $out/bin/tx
25   '';
27   # Tests contain network calls
28   doCheck = false;
30   meta = with lib; {
31     description = "Transifex command-line client";
32     homepage = "https://github.com/transifex/transifex-cli";
33     license = licenses.asl20;
34     maintainers = with maintainers; [ thornycrackers ];
35     mainProgram = "tx";
36   };