2021-12-20 11:49:38 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "buildkit-nix";
|
2022-10-11 19:00:59 +02:00
|
|
|
version = "0.1.0";
|
2021-12-20 11:49:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-11 19:00:59 +02:00
|
|
|
owner = "reproducible-containers";
|
2021-12-20 11:49:38 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-11 19:00:59 +02:00
|
|
|
sha256 = "sha256-gKTCBz7om1M7UBzyMJDetNGcKLkQKMyuzwrHBbuuifM=";
|
2021-12-20 11:49:38 +01:00
|
|
|
};
|
|
|
|
|
2022-10-08 07:49:34 +02:00
|
|
|
vendorSha256 = "sha256-1H5oWgcaamf+hocABWWnzJUjWiqwk1ZZtbBjF6EKzzU=";
|
2021-12-20 11:49:38 +01:00
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nix frontend for BuildKit";
|
2022-10-11 19:00:59 +02:00
|
|
|
homepage = "https://github.com/reproducible-containers/buildkit-nix/";
|
2021-12-20 11:49:38 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
|
|
|
};
|
|
|
|
}
|