2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, git }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conform";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "0.1.0-alpha.27";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "siderolabs";
|
|
|
|
repo = "conform";
|
|
|
|
rev = "v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-lIXkflWQcUcmRDX9iSszFLKpI8nSgkCCB2+GQn07+DM=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-Oigt7tAK4jhBQtfG1wdLHqi11NWu6uJn5fmuqTmR76E=";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2022-07-14 12:49:19 +00:00
|
|
|
"-X github.com/siderolabs/conform/internal/version.Tag=v${version}"
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Policy enforcement for your pipelines";
|
|
|
|
homepage = "https://github.com/siderolabs/conform";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jmgilman jk ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "conform";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|