mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #177515 from SuperSandro2000/fly
fly: 7.7.1 -> 7.8.0, adopt
This commit is contained in:
commit
8f5ceec1d8
1 changed files with 15 additions and 12 deletions
|
@ -1,36 +1,39 @@
|
|||
{ buildGoModule, fetchFromGitHub, stdenv, lib }:
|
||||
{ buildGoModule, fetchFromGitHub, stdenv, lib, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "fly";
|
||||
version = "7.7.1";
|
||||
version = "7.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "concourse";
|
||||
repo = "concourse";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-AJvD9re4jj+ixvZKWHDJM0QEv5EPFv3VFJus3lnm2LI=";
|
||||
sha256 = "sha256-CYQQ44Yx97PvhFHrTzUM2RooNCh5Sdg8SXsV4BOzzPE=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-G9HdhPi4iezUR6SIVYnjL0fznOfiusY4T9ClLPr1w5c=";
|
||||
|
||||
doCheck = false;
|
||||
vendorSha256 = "sha256-aYu5K6pK6Q0Fmagr91i6nc3t55nUjn5vasIO+kUXWrs=";
|
||||
|
||||
subPackages = [ "fly" ];
|
||||
|
||||
ldflags = [
|
||||
"-X github.com/concourse/concourse.Version=${version}"
|
||||
"-s" "-w" "-X github.com/concourse/concourse.Version=${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
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
|
||||
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; {
|
||||
description = "A command line interface to Concourse CI";
|
||||
description = "Command line interface to Concourse CI";
|
||||
homepage = "https://concourse-ci.org";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ivanbrennan ];
|
||||
maintainers = with maintainers; [ ivanbrennan SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue