2022-06-01 16:10:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, git }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "conform";
|
2024-02-27 09:16:07 +00:00
|
|
|
version = "0.1.0-alpha.29";
|
2022-06-01 16:10:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "siderolabs";
|
|
|
|
repo = "conform";
|
|
|
|
rev = "v${version}";
|
2024-02-27 09:16:07 +00:00
|
|
|
hash = "sha256-5knN+lTedUdgWG8rb3zuJAxx9N0lt7LjJvmSJhdTSgw=";
|
2022-06-01 16:10:50 +00:00
|
|
|
};
|
2024-02-15 14:23:27 +00:00
|
|
|
|
|
|
|
vendorHash = "sha256-hDdNYXy5NIrlqT6yyOglFg2v7HOM9nE+oh7mx2kLdnQ=";
|
2022-06-01 16:10:50 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2022-07-05 16:38:15 +00:00
|
|
|
"-X github.com/siderolabs/conform/internal/version.Tag=v${version}"
|
2022-06-01 16:10:50 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
2022-06-01 16:10:50 +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 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "conform";
|
2022-06-01 16:10:50 +00:00
|
|
|
};
|
|
|
|
}
|