b41113241d
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
34 lines
868 B
Nix
34 lines
868 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cirrus-cli";
|
|
version = "0.86.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cirruslabs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-ilQNwxqi7PMj6zgJ7SbpKfHDiTEjfIey3jV/Owrbddc=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-GRCcKIUimPFdeAhnz6RC5arZ0E+z+SpaAC1uDaxpJkI=";
|
|
|
|
ldflags = [
|
|
"-X github.com/cirruslabs/cirrus-cli/internal/version.Version=v${version}"
|
|
"-X github.com/cirruslabs/cirrus-cli/internal/version.Commit=v${version}"
|
|
];
|
|
|
|
# tests fail on read-only filesystem
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "CLI for executing Cirrus tasks locally and in any CI";
|
|
homepage = "https://github.com/cirruslabs/cirrus-cli";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
mainProgram = "cirrus";
|
|
};
|
|
}
|