Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "sem"; 5 version = "0.28.1"; 6 7 src = fetchFromGitHub { 8 owner = "semaphoreci"; 9 repo = "cli"; 10 rev = "v${version}"; 11 sha256 = "sha256-pyin05mPIAq5dJebLehsCYDaIf5eGCcGzF5uz8egJV8="; 12 }; 13 14 vendorSha256 = "sha256-kuLN3r6CGL/fGQ5ggSLZWNC4AVvvGn6znTFGqkS4AXg="; 15 subPackages = [ "." ]; 16 17 ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ]; 18 19 postInstall = '' 20 install -m755 $out/bin/cli $out/bin/sem 21 ''; 22 23 meta = with lib; { 24 description = "A cli to operate on semaphore ci (2.0)"; 25 homepage = "https://github.com/semaphoreci/cli"; 26 changelog = "https://github.com/semaphoreci/cli/releases/tag/v${version}"; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ liberatys ]; 29 platforms = platforms.linux; 30 }; 31}