2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-12-21 02:08:59 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "docker-buildx";
|
2021-07-20 03:52:24 +02:00
|
|
|
version = "0.6.0";
|
2020-12-21 02:08:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "docker";
|
|
|
|
repo = "buildx";
|
|
|
|
rev = "v${version}";
|
2021-07-20 03:52:24 +02:00
|
|
|
sha256 = "sha256-5j1+3FlLc0gYDnYvDsAdmILxgjHCU1bTVOytfaF03iU=";
|
2020-12-21 02:08:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D $GOPATH/bin/buildx $out/libexec/docker/cli-plugins/docker-buildx
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docker CLI plugin for extended build capabilities with BuildKit";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ivan-babrou ];
|
|
|
|
};
|
|
|
|
}
|