emacsPackages.treemacs: replace python3 program (#364623)
[NixPkgs.git] / pkgs / by-name / pa / pack / package.nix
blob58e969922977ca1b438fe85f0a1567193a3bdccb
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nix-update-script,
6   testers,
7   pack,
8 }:
10 buildGoModule rec {
11   pname = "pack";
12   version = "0.36.0";
14   src = fetchFromGitHub {
15     owner = "buildpacks";
16     repo = "pack";
17     rev = "v${version}";
18     hash = "sha256-WdYV8Pcnzbt3Sd+0wYkw/htHruqFFYopPsRP/xs9WPI=";
19   };
21   vendorHash = "sha256-RfidlZHyC/dcIuisvIGzd7Vqk7j2DQuJjgERs8lfr0A=";
23   subPackages = [ "cmd/pack" ];
25   ldflags = [
26     "-s"
27     "-w"
28     "-X github.com/buildpacks/pack.Version=${version}"
29   ];
31   passthru = {
32     updateScript = nix-update-script { };
33     tests.version = testers.testVersion { package = pack; };
34   };
36   meta = {
37     description = "CLI for building apps using Cloud Native Buildpacks";
38     homepage = "https://github.com/buildpacks/pack/";
39     license = lib.licenses.asl20;
40     mainProgram = "pack";
41     maintainers = with lib.maintainers; [ drupol ];
42   };