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