0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ buildGoModule, fetchFromGitHub, stdenv, lib, writeText }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fly";
|
|
version = "6.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "concourse";
|
|
repo = "concourse";
|
|
rev = "v${version}";
|
|
sha256 = "16si1qm835yyvk2f0kwn9wnk8vpy5q4whgws1s2p6jr7dswg43h8";
|
|
};
|
|
|
|
vendorSha256 = "0nv9q3j9cja8c6d7ac8fzb8zf82zz1z77f8cxvn3vxjki7fhlavm";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "fly" ];
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X github.com/concourse/concourse.Version=${version}
|
|
'';
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A command line interface to Concourse CI";
|
|
homepage = "https://concourse-ci.org";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ivanbrennan ];
|
|
};
|
|
}
|