2019-03-14 16:01:39 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "buildkit";
|
2020-05-06 06:58:13 +01:00
|
|
|
version = "0.7.1";
|
2019-03-14 16:01:39 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/moby/buildkit";
|
|
|
|
subPackages = [ "cmd/buildctl" ] ++ stdenv.lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moby";
|
|
|
|
repo = "buildkit";
|
2020-02-09 09:20:00 +00:00
|
|
|
rev = "v${version}";
|
2020-05-06 06:58:13 +01:00
|
|
|
sha256 = "048h69ffgmpir2ix9ldi6zrzlwxa5yz3idg5ajspz2dihmzmnwws";
|
2019-03-14 16:01:39 +00:00
|
|
|
};
|
|
|
|
|
2020-02-09 09:20:00 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
|
|
|
|
|
2019-03-14 16:01:39 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/moby/buildkit";
|
2019-03-14 16:01:39 +00:00
|
|
|
license = licenses.asl20;
|
2020-02-09 09:21:00 +00:00
|
|
|
maintainers = with maintainers; [ vdemeester marsam ];
|
2019-03-14 16:01:39 +00:00
|
|
|
};
|
|
|
|
}
|