2021-03-28 19:05:20 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, stdenv, lib }:
|
2019-07-13 23:55:22 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fly";
|
2021-09-22 07:30:31 +01:00
|
|
|
version = "7.5.0";
|
2019-07-13 23:55:22 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concourse";
|
|
|
|
repo = "concourse";
|
|
|
|
rev = "v${version}";
|
2021-09-22 07:30:31 +01:00
|
|
|
sha256 = "sha256-5+zAIvm4RgXc09HwSNlSjChL4NhMMiGDMtAVlmV/BYE=";
|
2019-07-13 23:55:22 +01:00
|
|
|
};
|
|
|
|
|
2021-09-22 07:30:31 +01:00
|
|
|
vendorSha256 = "sha256-Z6zxSbzn1/u+3Z9PeRl6iO0pVlw/lGtFjAuZpGrRDDY=";
|
2019-07-13 23:55:22 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-07-13 23:55:22 +01:00
|
|
|
subPackages = [ "fly" ];
|
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/concourse/concourse.Version=${version}"
|
|
|
|
];
|
2019-07-13 23:55:22 +01:00
|
|
|
|
2020-05-15 12:47:00 +01: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
|
2019-07-13 23:55:22 +01:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-07-13 23:55:22 +01:00
|
|
|
description = "A command line interface to Concourse CI";
|
2020-03-14 17:32:06 +00:00
|
|
|
homepage = "https://concourse-ci.org";
|
2019-07-13 23:55:22 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ivanbrennan ];
|
|
|
|
};
|
2020-05-15 12:51:31 +01:00
|
|
|
}
|