2021-08-10 14:31:46 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "buildkit";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.12.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moby";
|
|
|
|
repo = "buildkit";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-nQvrd2W9xWWGTlwN5Q2E3rs67OUxZ4bIp+rK2W2PUww=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
vendorHash = null;
|
2021-08-10 14:31:46 +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-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
|
|
|
|
homepage = "https://github.com/moby/buildkit";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/moby/buildkit/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-15 16:39:30 +00:00
|
|
|
maintainers = with maintainers; [ vdemeester marsam developer-guy ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "buildctl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|