From 9934f533f46e00e5568408bb89aaef4fead4fa97 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 14 Mar 2019 17:01:39 +0100 Subject: [PATCH] buildkit: init at v0.4.0 compile `builtkitd` only on Linux, `buildkitctl` on all envs. Signed-off-by: Vincent Demeester --- pkgs/development/tools/buildkit/default.nix | 24 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/buildkit/default.nix diff --git a/pkgs/development/tools/buildkit/default.nix b/pkgs/development/tools/buildkit/default.nix new file mode 100644 index 000000000000..29b07fbfd0f6 --- /dev/null +++ b/pkgs/development/tools/buildkit/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, buildGoPackage }: + +buildGoPackage rec { + pname = "buildkit"; + version = "0.4.0"; + rev = "v${version}"; + + goPackagePath = "github.com/moby/buildkit"; + subPackages = [ "cmd/buildctl" ] ++ stdenv.lib.optionals stdenv.isLinux [ "cmd/buildkitd" ]; + + src = fetchFromGitHub { + inherit rev; + owner = "moby"; + repo = "buildkit"; + sha256 = "0gkwcjqbcskn63y79jwa26hxkps452z4bgz8lrryaskzbdpvhh3d"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 161450de4da1..4a500472feb5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1071,6 +1071,8 @@ in buildah = callPackage ../development/tools/buildah { }; + buildkit = callPackage ../development/tools/buildkit { }; + bukubrow = callPackage ../tools/networking/bukubrow { }; burpsuite = callPackage ../tools/networking/burpsuite {};