2022-06-16 17:23:12 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, stdenv, lib, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fly";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "7.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "concourse";
|
|
|
|
repo = "concourse";
|
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-ySyarky92+VSo/KzQFrWeh35KDMTQDV34F5iFrARHJs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
vendorHash = "sha256-Oy1wP82ZhdpGHs/gpfdveOK/jI9yuo0D3JtxjLg+W/w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "fly" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
2022-06-16 17:23:12 +00:00
|
|
|
"-s" "-w" "-X github.com/concourse/concourse.Version=${version}"
|
2021-08-27 14:25:00 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
2022-06-16 17:23:12 +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)
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Command line interface to Concourse CI";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://concourse-ci.org";
|
|
|
|
license = licenses.asl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ ivanbrennan SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|