nixpkgs/pkgs/development/tools/buildkit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
847 B
Nix
Raw Normal View History

{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "buildkit";
2022-11-11 10:02:20 +00:00
version = "0.10.6";
src = fetchFromGitHub {
owner = "moby";
repo = "buildkit";
2020-02-09 09:20:00 +00:00
rev = "v${version}";
2022-11-11 10:02:20 +00:00
sha256 = "sha256-bTzpiTqdAfo31sFRBCp0EzYMVjc6jt4aPK0VLsB9j0g=";
};
vendorSha256 = null;
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
meta = with lib; {
description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
homepage = "https://github.com/moby/buildkit";
license = licenses.asl20;
2020-02-09 09:21:00 +00:00
maintainers = with maintainers; [ vdemeester marsam ];
mainProgram = "buildctl";
};
}