Files

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

47 lines
1013 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildGoModule,
fleet,
writableTmpDirAsHomeHook,
versionCheckHook,
stdenv,
}:
buildGoModule (finalAttrs: {
pname = "fleetctl";
inherit (fleet) version src vendorHash;
subPackages = [
"cmd/fleetctl"
];
ldflags = [
"-X github.com/fleetdm/fleet/v4/server/version.appName=fleetctl"
"-X github.com/fleetdm/fleet/v4/server/version.version=${finalAttrs.version}"
];
nativeCheckInputs = [
writableTmpDirAsHomeHook
];
# Try to access /var/empty/.goquery/history subfolders
doCheck = !stdenv.hostPlatform.isDarwin;
doInstallCheck = !stdenv.hostPlatform.isDarwin;
nativeInstallCheckInputs = [
versionCheckHook
];
meta = {
homepage = "https://github.com/fleetdm/fleet";
changelog = "https://github.com/fleetdm/fleet/releases/tag/fleet-v${finalAttrs.version}";
description = "CLI tool for managing Fleet";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
lesuisse
];
mainProgram = "fleetctl";
};
})