2019-11-17 21:20:00 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "pack";
|
2020-01-26 09:20:00 +00:00
|
|
|
version = "0.7.0";
|
2019-11-17 21:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-12-19 21:20:00 +00:00
|
|
|
owner = "buildpacks";
|
2019-11-17 21:20:00 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-01-26 09:20:00 +00:00
|
|
|
sha256 = "0glfxrw3x35m4nmhr9xwlc14y5g9zni85rcrcn3dvkvgh4m6ipaj";
|
2019-11-17 21:20:00 +00:00
|
|
|
};
|
|
|
|
|
2019-12-19 21:20:00 +00:00
|
|
|
goPackagePath = "github.com/buildpacks/pack";
|
2019-11-17 21:20:00 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/pack" ];
|
|
|
|
|
2019-12-19 21:20:00 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/buildpacks/pack/cmd.Version=${version}" ];
|
2019-11-17 21:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://buildpacks.io/";
|
2020-01-26 09:20:00 +00:00
|
|
|
changelog = "https://github.com/buildpacks/pack/releases/tag/v${version}";
|
2019-11-17 21:20:00 +00:00
|
|
|
description = "Local CLI for building apps using Cloud Native Buildpacks";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|