2021-12-20 10:49:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "buildkit-nix";
|
2022-10-08 06:49:34 +01:00
|
|
|
version = "0.0.3";
|
2021-12-20 10:49:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AkihiroSuda";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-08 06:49:34 +01:00
|
|
|
sha256 = "sha256-hrrvDby+UDwY0wvq/HIP9lYVEa/flr/1gtGXHMN8Mug=";
|
2021-12-20 10:49:38 +00:00
|
|
|
};
|
|
|
|
|
2022-10-08 06:49:34 +01:00
|
|
|
vendorSha256 = "sha256-1H5oWgcaamf+hocABWWnzJUjWiqwk1ZZtbBjF6EKzzU=";
|
2021-12-20 10:49:38 +00:00
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nix frontend for BuildKit";
|
|
|
|
homepage = "https://github.com/AkihiroSuda/buildkit-nix/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
|
|
|
};
|
|
|
|
}
|