Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "transifex-cli"; 9 version = "1.6.17"; 10 11 src = fetchFromGitHub { 12 owner = "transifex"; 13 repo = "cli"; 14 rev = "v${version}"; 15 sha256 = "sha256-jzAt/SalItGG0KI3GZb4/pT4T7oHwCji2bjNR1BTJXI="; 16 }; 17 18 vendorHash = "sha256-3gi2ysIb5256CdmtX38oIfeDwNCQojK+YB9aEm8H01Q="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X 'github.com/transifex/cli/internal/txlib.Version=${version}'" 24 ]; 25 26 postInstall = '' 27 mv $out/bin/cli $out/bin/tx 28 ''; 29 30 # Tests contain network calls 31 doCheck = false; 32 33 meta = with lib; { 34 description = "Transifex command-line client"; 35 homepage = "https://github.com/transifex/cli"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ thornycrackers ]; 38 mainProgram = "tx"; 39 }; 40}