2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildGoPackage }:
|
2019-03-14 16:01:39 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "buildkit";
|
2021-01-07 04:20:00 +00:00
|
|
|
version = "0.8.1";
|
2019-03-14 16:01:39 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/moby/buildkit";
|
2021-01-23 12:26:19 +00:00
|
|
|
subPackages = [ "cmd/buildctl" ] ++ lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
|
2019-03-14 16:01:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moby";
|
|
|
|
repo = "buildkit";
|
2020-02-09 09:20:00 +00:00
|
|
|
rev = "v${version}";
|
2021-01-07 04:20:00 +00:00
|
|
|
sha256 = "0lqfz097nyb6q6bn5mmfg6vl1nmgb6k4lmwxc8anza6zp8qh7wif";
|
2019-03-14 16:01:39 +00:00
|
|
|
};
|
|
|
|
|
2020-07-27 10:20:00 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version} -X ${goPackagePath}/version.Revision=${src.rev}" ];
|
2020-02-09 09:20:00 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-03-14 16:01:39 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|