summary refs log tree commit diff
path: root/pkgs/development/tools/buildkit
diff options
context:
space:
mode:
authorVincent Demeester <vincent@sbr.pm>2019-03-14 17:01:39 +0100
committerVincent Demeester <vincent@sbr.pm>2019-03-14 17:01:39 +0100
commit9934f533f46e00e5568408bb89aaef4fead4fa97 (patch)
tree14909196fa209b3d21fe4f59ac3b1069a0f12f37 /pkgs/development/tools/buildkit
parent8f9e283f929120f2579f791c9ac9b0df7bd8d938 (diff)
buildkit: init at v0.4.0
compile `builtkitd` only on Linux, `buildkitctl` on all envs.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat (limited to 'pkgs/development/tools/buildkit')
-rw-r--r--pkgs/development/tools/buildkit/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/buildkit/default.nix b/pkgs/development/tools/buildkit/default.nix
new file mode 100644
index 0000000000000..29b07fbfd0f67
--- /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 ];
+  };
+}