2019-07-14 00:55:22 +02:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, writeText }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fly";
|
2019-10-21 04:02:00 +02:00
|
|
|
version = "5.7.2";
|
2019-07-14 00:55:22 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concourse";
|
|
|
|
repo = "concourse";
|
|
|
|
rev = "v${version}";
|
2019-10-21 04:02:00 +02:00
|
|
|
sha256 = "1jhc2h00rh6lpgdq3n2d1sk7gdzmhkigyra04gf70s6kjb903igw";
|
2019-07-14 00:55:22 +02:00
|
|
|
};
|
|
|
|
|
2019-10-21 04:02:00 +02:00
|
|
|
modSha256 = "00qagz28iz1z5kjshs1m74bf12qlhjbkf4pbchy7lzf09bd291pg";
|
2019-07-14 00:55:22 +02:00
|
|
|
|
|
|
|
subPackages = [ "fly" ];
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/concourse/concourse.Version=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
# The fly.bash file included with this derivation can be replaced by a
|
|
|
|
# call to `fly completion bash` once the `completion` subcommand has
|
|
|
|
# made it into a release. Similarly, `fly completion zsh` will provide
|
|
|
|
# zsh completions. https://github.com/concourse/concourse/pull/4012
|
|
|
|
postInstall = ''
|
|
|
|
install -D -m 444 ${./fly.bash} $out/share/bash-completion/completions/fly
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command line interface to Concourse CI";
|
|
|
|
homepage = https://concourse-ci.org;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ivanbrennan ];
|
|
|
|
};
|
|
|
|
}
|