python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / buildpack / default.nix
blobdb5898a6059ef9ac74e85c63205688a8eb4fb315
1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
3 buildGoModule rec {
4   pname = "pack";
5   version = "0.27.0";
7   src = fetchFromGitHub {
8     owner = "buildpacks";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-b1lqgY6pu4yt3yY2UupG7PQUkgotK0VDffCW/0thxoo=";
12   };
14   vendorSha256 = "sha256-JqSk4w0chtWNYDQXo8oh5spAxor2kixo3fZcpV4LJ+8=";
16   nativeBuildInputs = [ installShellFiles ];
18   subPackages = [ "cmd/pack" ];
20   ldflags = [ "-s" "-w" "-X github.com/buildpacks/pack.Version=${version}" ];
22   postInstall = ''
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)
27   '';
29   meta = with lib; {
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";
33     license = licenses.asl20;
34     maintainers = [ maintainers.marsam ];
35   };