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