2021-03-20 04:20:00 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, stdenv, lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fly";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "7.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concourse";
|
|
|
|
repo = "concourse";
|
|
|
|
rev = "v${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-M0Jo4DyvPghhVLK3eFdew10lGUJJODxKoL+v16y9CW8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
vendorSha256 = "sha256-W6m+nDNcZBVfa1OTkOHWf4E9LmEUewsTLT/56Iyp6+Y=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "fly" ];
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/concourse/concourse.Version=${version}
|
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
|
|
|
mkdir -p $out/share/{bash-completion/completions,zsh/site-functions}
|
|
|
|
$out/bin/fly completion --shell bash > $out/share/bash-completion/completions/fly
|
|
|
|
$out/bin/fly completion --shell zsh > $out/share/zsh/site-functions/_fly
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command line interface to Concourse CI";
|
|
|
|
homepage = "https://concourse-ci.org";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ivanbrennan ];
|
|
|
|
};
|
|
|
|
}
|