1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
11 hash = "sha256-nKMgyMPPBon3DChkikNvb2s41osub+fdCeGFzXwhQJo=";
14 vendorHash = "sha256-/2GO99kfZTra7tJy90Y0nixNafiP65ZpDQnvEhOaGoA=";
16 nativeBuildInputs = [ installShellFiles ];
18 subPackages = [ "cmd/pack" ];
20 ldflags = [ "-s" "-w" "-X github.com/buildpacks/pack.Version=${version}" ];
23 installShellCompletion --cmd pack \
24 --zsh $(PACK_HOME=$PWD $out/bin/pack completion --shell zsh) \
25 --bash $(PACK_HOME=$PWD $out/bin/pack completion --shell bash) \
26 --fish $(PACK_HOME=$PWD $out/bin/pack completion --shell fish)
30 homepage = "https://buildpacks.io/";
31 changelog = "https://github.com/buildpacks/pack/releases/tag/v${version}";
32 description = "CLI for building apps using Cloud Native Buildpacks";
34 license = licenses.asl20;
35 maintainers = [ maintainers.marsam ];