Update every package to its newest upstream release/commit: - aionui 2.1.50 -> 2.2.2 - awg-tool 0.2.2 -> 0.3.0 - ds4 -> 0-unstable-2026-09-12 - freebuff 0.0.142 -> 0.0.174 - graphify 0.9.35 -> 0.9.61 - hipengine 0.3.0 -> 0.5.0 - mcp-gateway 3.4.0 -> 3.5.1 - omniroute 3.8.49 -> 3.8.50 - radar 1.9.1 -> 1.13.1 - relay-free-llm -> 0-unstable-2026-08-31 - traycer 1.1.10 -> 1.3.0 Refresh all source/dependency hashes (src, cargoHash, vendorHash, npmDepsHash, bun FODs) and keep treefmt clean. Packaging fixes required by the bumps: - graphify: relax the setuptools>=83 build-backend pin (nixpkgs ships setuptools 80.x; the PEP 639 metadata needs only >=77). - hipengine: add a llguidance 1.8.0 override (nixpkgs ships 1.7.x). - omniroute: use npmDepsFetcherVersion 2; the v1 fetcher drops packages whose lockfile entries lack resolved URLs, breaking npm's cache check. - radar: fix a frontend npmDepsHash/vendorHash swap from nix-update. Packages already at latest are untouched: container-use, desloppify, freetoken, kubernetes-mcp-server, loop, nftables-analyzer, nftablesbuilder, stakpak, haivemind, skillsmcp. llama-cpp stays pinned at b9645 and is tracked separately (manual HIP flag re-validation).
100 lines
2.2 KiB
Nix
100 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
let
|
|
version = "1.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skyhook-io";
|
|
repo = "radar";
|
|
rev = "v${version}";
|
|
hash = "sha256-jRcX7wv+uHxH2hoYSoLEjcVnuRGAnrTt4tbwZozDb7Y=";
|
|
};
|
|
|
|
# Build the frontend as a separate derivation.
|
|
# The lockfile has some workspace packages without resolved URLs,
|
|
# so we patch them in postPatch before fetching dependencies.
|
|
frontend = buildNpmPackage {
|
|
pname = "radar-frontend";
|
|
inherit version src;
|
|
sourceRoot = "source";
|
|
|
|
# Upstream lockfile ships complete resolved/integrity fields for all
|
|
# packages since v1.9.x, so no lockfile patching is needed anymore.
|
|
|
|
npmDepsHash = "sha256-TuSBPGktl6s1adHWbP81+TOEZufo5y2gwiUnfiaLoOc=";
|
|
npmDepsFetcherVersion = 2;
|
|
makeCacheWritable = true;
|
|
|
|
doCheck = false;
|
|
|
|
# Build the web workspace and install its output
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
cd web
|
|
HOME=$TMPDIR ../node_modules/.bin/vite build
|
|
cd ..
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r web/dist/* $out/
|
|
runHook postInstall
|
|
'';
|
|
};
|
|
in
|
|
|
|
buildGoModule {
|
|
pname = "radar";
|
|
inherit version src;
|
|
|
|
vendorHash = "sha256-sFlj1sE+ciXQauReWm3mLQZK21lqTaU4cAj06flpx30=";
|
|
|
|
# Copy pre-built frontend assets before Go compilation for go:embed
|
|
preBuild = ''
|
|
mkdir -p internal/static/dist
|
|
cp -r ${frontend}/* internal/static/dist/
|
|
'';
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=v${version}"
|
|
];
|
|
|
|
subPackages = [ "cmd/explorer" ];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/explorer $out/bin/radar
|
|
'';
|
|
|
|
passthru = {
|
|
category = "Kubernetes";
|
|
inherit frontend;
|
|
updateScript = [
|
|
"nix-update"
|
|
"--flake"
|
|
".#radar"
|
|
];
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Modern Kubernetes visibility — topology, event timeline, service traffic, resource browsing, Helm management, and GitOps support";
|
|
homepage = "https://github.com/skyhook-io/radar";
|
|
changelog = "https://github.com/skyhook-io/radar/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
mainProgram = "radar";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|