My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/tools/buildkit/default.nix

29 lines
847 B

{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "buildkit";
version = "0.10.3";
src = fetchFromGitHub {
owner = "moby";
repo = "buildkit";
rev = "v${version}";
sha256 = "sha256-hZINmKzLB0nFVVP8eXK2ghe4Emmuq55w0vDwLw8XuJk=";
};
vendorSha256 = null;
subPackages = [ "cmd/buildctl" ] ++ lib.optionals stdenv.isLinux [ "cmd/buildkitd" ];
ldflags = [ "-s" "-w" "-X github.com/moby/buildkit/version.Version=${version}" "-X github.com/moby/buildkit/version.Revision=${src.rev}" ];
doCheck = false;
meta = with lib; {
description = "Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit";
homepage = "https://github.com/moby/buildkit";
license = licenses.asl20;
maintainers = with maintainers; [ vdemeester marsam ];
mainProgram = "buildctl";
};
}