fleet: init at 4.67.1

This commit is contained in:
Antoine Sauzeau
2025-04-26 23:03:56 +02:00
parent 0fcaca965c
commit 774697c051
+52
View File
@@ -0,0 +1,52 @@
{
lib,
stdenv,
fetchFromGitHub,
buildGoModule,
writableTmpDirAsHomeHook,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "fleet";
version = "4.67.1";
src = fetchFromGitHub {
owner = "fleetdm";
repo = "fleet";
tag = "fleet-v${finalAttrs.version}";
hash = "sha256-cZ0YTFcyPt7NMZUDZCdlVPTuhwRy7mTp7JCdINqiwOM=";
};
vendorHash = "sha256-gFAotYho18Jn8MaFK6ShoMA1VLXVENcrASvHWZGFOFg=";
subPackages = [
"cmd/fleet"
];
ldflags = [
"-X github.com/fleetdm/fleet/v4/server/version.appName=fleet"
"-X github.com/fleetdm/fleet/v4/server/version.version=${finalAttrs.version}"
];
doCheck = true;
nativeCheckInputs = [
writableTmpDirAsHomeHook
];
doInstallCheck = true;
versionCheckProgramArg = "version";
nativeInstallCheckInputs = [
versionCheckHook
];
meta = {
homepage = "https://github.com/fleetdm/fleet";
changelog = "https://github.com/fleetdm/fleet/releases/tag/fleet-v${finalAttrs.version}";
description = "CLI tool to launch Fleet server";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
asauzeau
];
mainProgram = "fleet";
};
})