2021-08-08 04:20:00 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2019-03-14 16:01:39 +00:00
|
|
|
|
2021-08-08 04:20:00 +00:00
|
|
|
buildGoModule rec {
|
2019-03-14 16:01:39 +00:00
|
|
|
pname = "buildkit";
|
2023-01-12 04:20:00 +00:00
|
|
|
version = "0.11.0";
|
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}";
|
2023-01-12 04:20:00 +00:00
|
|
|
hash = "sha256-zRkfH/CHLoulB/IDq2VPc8a6N2wMzX0Ws9oE9339VOQ=";
|
2019-03-14 16:01:39 +00:00
|
|
|
};
|
|
|
|
|
2023-01-12 04:20:00 +00:00
|
|
|
vendorHash = null;
|
2021-08-08 04:20:00 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/buildctl" ] ++ lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/moby/buildkit/version.Version=${version}" "-X github.com/moby/buildkit/version.Revision=${src.rev}" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
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 01:11:51 +00: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 ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "buildctl";
|
2019-03-14 16:01:39 +00:00
|
|
|
};
|
|
|
|
}
|