3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/buildkit/default.nix

29 lines
816 B
Nix
Raw Normal View History

{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "buildkit";
2021-12-06 06:23:08 +00:00
version = "0.9.3";
src = fetchFromGitHub {
owner = "moby";
repo = "buildkit";
2020-02-09 09:20:00 +00:00
rev = "v${version}";
2021-12-06 06:23:08 +00:00
sha256 = "sha256-xjuHMjJjA4sx2Hrr6tPpvKtSmhGZ3AZka733DLxmYfk=";
};
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 ];
};
}