biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / sem / default.nix
blob76741e773110b891693900ffabf1ed85c1460a32
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "sem";
5   version = "0.28.6";
7   src = fetchFromGitHub {
8     owner = "semaphoreci";
9     repo = "cli";
10     rev = "v${version}";
11     sha256 = "sha256-8zGgqa0z3KYSYVaYlSnTET7QJ+Mdp+FVJ5MD2pyh7Ns=";
12   };
14   vendorHash = "sha256-p8+M+pRp12P7tYlFpXjU94JcJOugQpD8rFdowhonh74=";
15   subPackages = [ "." ];
17   ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
19   postInstall = ''
20     install -m755 $out/bin/cli $out/bin/sem
21   '';
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   };