2020-03-27 08:33:21 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, writeText }:
|
2019-07-14 00:55:22 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fly";
|
2020-03-14 18:32:06 +01:00
|
|
|
version = "5.8.0";
|
2019-07-14 00:55:22 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concourse";
|
|
|
|
repo = "concourse";
|
|
|
|
rev = "v${version}";
|
2020-03-14 18:32:06 +01:00
|
|
|
sha256 = "0ji3jya4b2b4l6dlvydh3k2jfh6kkhii23d6rmi49ypydhn1qmgj";
|
2019-07-14 00:55:22 +02:00
|
|
|
};
|
|
|
|
|
2020-03-14 18:32:06 +01:00
|
|
|
modSha256 = "14wwspp8x6i4ry23bz8b08mfyzrwc9m7clrylxzr8j67yhg5kw6v";
|
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
|
|
|
|
'';
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2019-07-14 00:55:22 +02:00
|
|
|
description = "A command line interface to Concourse CI";
|
2020-03-14 18:32:06 +01:00
|
|
|
homepage = "https://concourse-ci.org";
|
2019-07-14 00:55:22 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ivanbrennan ];
|
|
|
|
};
|
|
|
|
}
|