nixpkgs/pkgs/by-name/pa/pack/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
896 B
Nix
Raw Normal View History

2024-07-10 12:57:32 +02:00
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
testers,
pack,
}:
buildGoModule rec {
pname = "pack";
2024-08-12 04:07:02 +02:00
version = "0.35.1";
2024-07-10 12:57:32 +02:00
src = fetchFromGitHub {
owner = "buildpacks";
repo = "pack";
rev = "v${version}";
2024-08-12 04:07:02 +02:00
hash = "sha256-iQkYtnobhAt73JMRrejk0DkOH1ZW2bqfZx05ZrDG5bA=";
2024-07-10 12:57:32 +02:00
};
2024-07-22 05:45:39 +02:00
vendorHash = "sha256-gp6Hd0MZxtUX0yYshFIGwrm6yY2pdSOtUs6xmzXBqc4=";
2024-07-10 12:57:32 +02:00
subPackages = [ "cmd/pack" ];
ldflags = [
"-s"
"-w"
"-X github.com/buildpacks/pack.Version=${version}"
];
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = pack; };
};
meta = {
description = "CLI for building apps using Cloud Native Buildpacks";
homepage = "https://github.com/buildpacks/pack/";
license = lib.licenses.asl20;
mainProgram = "pack";
maintainers = with lib.maintainers; [ drupol ];
};
}