2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, git }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conform";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.1.0-alpha.29";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "siderolabs";
|
|
|
|
repo = "conform";
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-5knN+lTedUdgWG8rb3zuJAxx9N0lt7LjJvmSJhdTSgw=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
vendorHash = "sha256-hDdNYXy5NIrlqT6yyOglFg2v7HOM9nE+oh7mx2kLdnQ=";
|
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
|
|
|
};
|
|
|
|
}
|