3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/continuous-integration/fly/default.nix
ivanbrennan 0be7adbc6c
fly: remove writeText
The writeText argument is unused. It was originally used to copy a bash
completion script into the derivation, but a different approach was
chosen, and I simply forgot to remove the writeText argument.

78013b4ecc
https://github.com/NixOS/nixpkgs/pull/64714#discussion_r303216977
2021-03-28 14:05:20 -04:00

38 lines
1 KiB
Nix

{ buildGoModule, fetchFromGitHub, stdenv, lib }:
buildGoModule rec {
pname = "fly";
version = "7.1.0";
src = fetchFromGitHub {
owner = "concourse";
repo = "concourse";
rev = "v${version}";
sha256 = "sha256-M0Jo4DyvPghhVLK3eFdew10lGUJJODxKoL+v16y9CW8=";
};
vendorSha256 = "sha256-W6m+nDNcZBVfa1OTkOHWf4E9LmEUewsTLT/56Iyp6+Y=";
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 ];
};
}