unifly: init at 0.9.2 (#538936)

This commit is contained in:
Sandro
2026-07-18 15:15:27 +00:00
committed by GitHub
+58
View File
@@ -0,0 +1,58 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
llvmPackages,
installShellFiles,
dbus,
versionCheckHook,
stdenv,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
__structuredAttrs = true;
pname = "unifly";
version = "0.9.2";
src = fetchFromGitHub {
owner = "hyperb1iss";
repo = "unifly";
tag = "v${finalAttrs.version}";
hash = "sha256-Hw/zm9OjBcAI0H2vvwnAj4tjF0E+d6RHpWIexhPBuy8=";
};
nativeBuildInputs = [
pkg-config
llvmPackages.bintools
installShellFiles
];
buildInputs = [ dbus ];
cargoHash = "sha256-4nLfMzlN5KQK3JvmoHbktI/tyc3aaI78Oa5RtQN4xLo=";
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd unifly \
--bash <($out/bin/unifly completions bash) \
--fish <($out/bin/unifly completions fish) \
--zsh <($out/bin/unifly completions zsh)
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Elegant UniFi network management CLI & TUI - for humans and agents";
homepage = "https://hyperb1iss.github.io/unifly";
changelog = "https://github.com/hyperb1iss/unifly/releases/tag/v${finalAttrs.version}";
license = lib.licenses.apsl20;
maintainers = with lib.maintainers; [ britter ];
mainProgram = "unifly";
};
})