1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/development/tools/buildkit/default.nix

26 lines
777 B
Nix
Raw Normal View History

{ 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";
2020-02-09 09:20:00 +00:00
rev = "v${version}";
sha256 = "048h69ffgmpir2ix9ldi6zrzlwxa5yz3idg5ajspz2dihmzmnwws";
};
2020-02-09 09:20:00 +00:00
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;
2020-02-09 09:21:00 +00:00
maintainers = with maintainers; [ vdemeester marsam ];
};
}