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

26 lines
825 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, buildGoPackage }:
buildGoPackage rec {
pname = "buildkit";
2020-07-27 11:20:00 +02:00
version = "0.7.2";
goPackagePath = "github.com/moby/buildkit";
subPackages = [ "cmd/buildctl" ] ++ stdenv.lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
src = fetchFromGitHub {
owner = "moby";
repo = "buildkit";
2020-02-09 10:20:00 +01:00
rev = "v${version}";
2020-07-27 11:20:00 +02:00
sha256 = "0kn2ad0rh3xlcxjxslkyrfxhv3cx88996nhxn86605x1mybxb2iq";
};
2020-07-27 11:20:00 +02:00
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version} -X ${goPackagePath}/version.Revision=${src.rev}" ];
2020-02-09 10:20:00 +01:00
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 10:21:00 +01:00
maintainers = with maintainers; [ vdemeester marsam ];
};
}