evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / pa / pack / package.nix
blob8a608af06b42266a016d68fe8075bb915545663c
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nix-update-script,
6   testers,
7   pack,
8 }:
10 buildGoModule rec {
11   pname = "pack";
12   version = "0.35.1";
14   src = fetchFromGitHub {
15     owner = "buildpacks";
16     repo = "pack";
17     rev = "v${version}";
18     hash = "sha256-iQkYtnobhAt73JMRrejk0DkOH1ZW2bqfZx05ZrDG5bA=";
19   };
21   vendorHash = "sha256-gp6Hd0MZxtUX0yYshFIGwrm6yY2pdSOtUs6xmzXBqc4=";
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   };