style: nix fmt hive-xdg-icons.nix (treefmt)

This commit is contained in:
atlas 2026-07-08 21:03:53 +02:00 committed by mara
commit 39af2bad5d

View file

@ -36,45 +36,45 @@ stdenv.mkDerivation {
'';
installPhase = ''
runHook preInstall
# Per-size hicolor tree
for size in 16 32 48 64 128 256; do
mkdir -p "$out/share/icons/hicolor/''${size}x''${size}/apps"
cp "icons/hyperhive-''${size}.png" \
"$out/share/icons/hicolor/''${size}x''${size}/apps/hyperhive.png"
done
# Flat pixmaps fallback (48px)
mkdir -p "$out/share/pixmaps"
cp icons/hyperhive-48.png "$out/share/pixmaps/hyperhive.png"
runHook preInstall
# Per-size hicolor tree
for size in 16 32 48 64 128 256; do
mkdir -p "$out/share/icons/hicolor/''${size}x''${size}/apps"
cp "icons/hyperhive-''${size}.png" \
"$out/share/icons/hicolor/''${size}x''${size}/apps/hyperhive.png"
done
# Flat pixmaps fallback (48px)
mkdir -p "$out/share/pixmaps"
cp icons/hyperhive-48.png "$out/share/pixmaps/hyperhive.png"
# .desktop entries — NoDisplay so they don't show up in app launchers
# but are still discovered by process-to-icon matchers (GNOME, etc.).
mkdir -p "$out/share/applications"
cat > "$out/share/applications/hive-c0re.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=hyperhive core
GenericName=hive-c0re
Comment=hyperhive host daemon container lifecycle, broker, operator dashboard
Exec=hive-c0re serve
Icon=hyperhive
Categories=System;
NoDisplay=true
StartupNotify=false
EOF
cat > "$out/share/applications/hive-ag3nt.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=hyperhive agent
GenericName=hive-ag3nt
Comment=hyperhive per-agent harness (claude turn loop + MCP server)
Exec=hive serve
Icon=hyperhive
Categories=System;
NoDisplay=true
StartupNotify=false
EOF
runHook postInstall
# .desktop entries — NoDisplay so they don't show up in app launchers
# but are still discovered by process-to-icon matchers (GNOME, etc.).
mkdir -p "$out/share/applications"
cat > "$out/share/applications/hive-c0re.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=hyperhive core
GenericName=hive-c0re
Comment=hyperhive host daemon container lifecycle, broker, operator dashboard
Exec=hive-c0re serve
Icon=hyperhive
Categories=System;
NoDisplay=true
StartupNotify=false
EOF
cat > "$out/share/applications/hive-ag3nt.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=hyperhive agent
GenericName=hive-ag3nt
Comment=hyperhive per-agent harness (claude turn loop + MCP server)
Exec=hive serve
Icon=hyperhive
Categories=System;
NoDisplay=true
StartupNotify=false
EOF
runHook postInstall
'';
dontFixup = true;