1 { lib, stdenv, buildGoModule, fetchFromGitHub }:
7 src = fetchFromGitHub {
11 hash = "sha256-BrLDY3T40ndkjuWCx5kLZvMBp8xI5d3MFg9M3IpafWM=";
16 subPackages = [ "cmd/buildctl" ] ++ lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
18 ldflags = [ "-s" "-w" "-X github.com/moby/buildkit/version.Version=${version}" "-X github.com/moby/buildkit/version.Revision=${src.rev}" ];
23 description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
24 homepage = "https://github.com/moby/buildkit";
25 changelog = "https://github.com/moby/buildkit/releases/tag/v${version}";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ vdemeester marsam developer-guy ];
28 mainProgram = "buildctl";