nixpkgs/pkgs/development/tools/continuous-integration/fly/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

2022-06-13 12:43:31 +00:00
{ buildGoModule, fetchFromGitHub, stdenv, lib, installShellFiles }:
buildGoModule rec {
pname = "fly";
2023-02-13 00:38:24 +00:00
version = "7.9.1";
src = fetchFromGitHub {
owner = "concourse";
repo = "concourse";
rev = "v${version}";
2023-02-13 00:38:24 +00:00
sha256 = "sha256-ySyarky92+VSo/KzQFrWeh35KDMTQDV34F5iFrARHJs=";
};
2023-02-13 00:38:24 +00:00
vendorHash = "sha256-Oy1wP82ZhdpGHs/gpfdveOK/jI9yuo0D3JtxjLg+W/w=";
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
];
2022-06-13 12:43:31 +00:00
nativeBuildInputs = [ installShellFiles ];
doCheck = false;
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)
'';
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";
license = licenses.asl20;
2022-06-13 12:43:31 +00:00
maintainers = with maintainers; [ ivanbrennan SuperSandro2000 ];
};
2020-05-15 11:51:31 +00:00
}