1 { buildGoModule, fetchFromGitHub, stdenv, lib, installShellFiles }:
7 src = fetchFromGitHub {
11 hash = "sha256-lAx9TZVRkPMa5swB74zI0xJ7pbRDApZoens747XcuJk=";
14 vendorHash = "sha256-dXjee2rZn1lVEmL8Cy8rrdpSX1OpS9GHKZo53ur3kew=";
16 subPackages = [ "fly" ];
19 "-s" "-w" "-X github.com/concourse/concourse.Version=${version}"
22 nativeBuildInputs = [ installShellFiles ];
26 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
27 installShellCompletion --cmd fly \
28 --bash <($out/bin/fly completion --shell bash) \
29 --fish <($out/bin/fly completion --shell fish) \
30 --zsh <($out/bin/fly completion --shell zsh)
34 description = "Command line interface to Concourse CI";
36 homepage = "https://concourse-ci.org";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ ivanbrennan SuperSandro2000 ];