bb5b50588c
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ buildGoModule, fetchFromGitHub, stdenv, lib, writeText }:
|
|
|
|
buildGoModule rec {
|
|
pname = "fly";
|
|
version = "7.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "concourse";
|
|
repo = "concourse";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-WpwMx8mPedunBKlRUDdcVA1sLWkZvuoaw6DEtvGSyAg=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-OxU+Hb8bX71SFuyAw583Z7bEu+b/j2i/fOGE5S9C91M=";
|
|
|
|
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 ];
|
|
};
|
|
}
|