2021-12-21 02:18:32 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "buildkit-nix";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.1.1";
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-21 18:38:19 +00:00
|
|
|
owner = "reproducible-containers";
|
2021-12-21 02:18:32 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-i8KQLLL36iP26jIj10fZLtYpS57Xni4eIQEJG4ixWy8=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-SFsf2QOIuUQY5Zzshb2190pQtOBGEsELBRihOvHYVGA=";
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nix frontend for BuildKit";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/reproducible-containers/buildkit-nix/";
|
2021-12-21 02:18:32 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "buildkit-nix";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
}
|