Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "fleet";
version = "4.73.2";
src = fetchFromGitHub {
owner = "fleetdm";
repo = "fleet";
tag = "fleet-v${finalAttrs.version}";
hash = "sha256-Td0ud/7BVDAN7Y74GQFyPnkLmaGS578zRu/8KmjQk5c=";
};
vendorHash = "sha256-T4UrUUHAWqInLRH7ZxQlfV1W1rvmhUFsfEeXQdNmRD4=";
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}"
];
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
lesuisse
];
mainProgram = "fleet";
};
})