2022-06-13 12:43:31 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, stdenv, lib, installShellFiles }:
|
2019-07-13 22:55:22 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fly";
|
2023-02-13 00:38:24 +00:00
|
|
|
version = "7.9.1";
|
2019-07-13 22:55:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concourse";
|
|
|
|
repo = "concourse";
|
|
|
|
rev = "v${version}";
|
2023-02-13 00:38:24 +00:00
|
|
|
sha256 = "sha256-ySyarky92+VSo/KzQFrWeh35KDMTQDV34F5iFrARHJs=";
|
2019-07-13 22:55:22 +00:00
|
|
|
};
|
|
|
|
|
2023-02-13 00:38:24 +00:00
|
|
|
vendorHash = "sha256-Oy1wP82ZhdpGHs/gpfdveOK/jI9yuo0D3JtxjLg+W/w=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2019-07-13 22:55:22 +00:00
|
|
|
subPackages = [ "fly" ];
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
2022-06-13 12:43:31 +00:00
|
|
|
"-s" "-w" "-X github.com/concourse/concourse.Version=${version}"
|
2021-08-26 06:45:51 +00:00
|
|
|
];
|
2019-07-13 22:55:22 +00:00
|
|
|
|
2022-06-13 12:43:31 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-09-27 09:18:00 +00:00
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
2022-06-13 12:43:31 +00:00
|
|
|
installShellCompletion --cmd fly \
|
|
|
|
--bash <($out/bin/fly completion --shell bash) \
|
|
|
|
--fish <($out/bin/fly completion --shell fish) \
|
|
|
|
--zsh <($out/bin/fly completion --shell zsh)
|
2019-07-13 22:55:22 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2022-06-13 12:43:31 +00:00
|
|
|
description = "Command line interface to Concourse CI";
|
2020-03-14 17:32:06 +00:00
|
|
|
homepage = "https://concourse-ci.org";
|
2019-07-13 22:55:22 +00:00
|
|
|
license = licenses.asl20;
|
2022-06-13 12:43:31 +00:00
|
|
|
maintainers = with maintainers; [ ivanbrennan SuperSandro2000 ];
|
2019-07-13 22:55:22 +00:00
|
|
|
};
|
2020-05-15 11:51:31 +00:00
|
|
|
}
|