mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
82f63e8728
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
26 lines
777 B
Nix
26 lines
777 B
Nix
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "buildkit";
|
|
version = "0.7.1";
|
|
|
|
goPackagePath = "github.com/moby/buildkit";
|
|
subPackages = [ "cmd/buildctl" ] ++ stdenv.lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moby";
|
|
repo = "buildkit";
|
|
rev = "v${version}";
|
|
sha256 = "048h69ffgmpir2ix9ldi6zrzlwxa5yz3idg5ajspz2dihmzmnwws";
|
|
};
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
|
|
homepage = "https://github.com/moby/buildkit";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ vdemeester marsam ];
|
|
};
|
|
}
|