Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 795 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "buildkite-cli"; 9 version = "3.8.0"; 10 11 src = fetchFromGitHub { 12 owner = "buildkite"; 13 repo = "cli"; 14 rev = "v${version}"; 15 sha256 = "sha256-zRACKFs4AZkWg2OqFIyiLuM1V6GyIPmtyxSOjfHkL6U="; 16 }; 17 18 vendorHash = "sha256-IOZd5XIUPhU52fcBYFo9+88XZcJon2RKVHnjDbOhPJ0="; 19 20 doCheck = false; 21 22 postPatch = '' 23 patchShebangs .buildkite/steps/{lint,run-local}.sh 24 ''; 25 26 subPackages = [ "cmd/bk" ]; 27 28 ldflags = [ 29 "-s" 30 "-w" 31 "-X main.VERSION=${version}" 32 ]; 33 34 meta = with lib; { 35 description = "Command line interface for Buildkite"; 36 homepage = "https://github.com/buildkite/cli"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ groodt ]; 39 mainProgram = "bk"; 40 }; 41}