gpustat: move icon to spec-compliant location

This commit is contained in:
pancaek
2026-03-02 01:45:22 -08:00
parent 5f99f468c2
commit 8aa9ae64f7
+6 -4
View File
@@ -46,10 +46,12 @@ rustPlatform.buildRustPackage rec {
];
postInstall = ''
mkdir -p $out/share/applications $out/share/pixmaps
cp assets/gpustat.desktop $out/share/applications
cp assets/gpustat_icon_* $out/share/pixmaps
install -D assets/gpustat.desktop -t $out/share/applications
install -D assets/gpustat_icon_16px.png $out/share/icons/hicolor/16x16/apps/gpustat.png
install -D assets/gpustat_icon_32px.png $out/share/icons/hicolor/32x32/apps/gpustat.png
install -D assets/gpustat_icon_64px.png $out/share/icons/hicolor/64x64/apps/gpustat.png
substituteInPlace $out/share/applications/gpustat.desktop \
--replace-fail "Icon=gpustat_icon_64px" "Icon=gpustat"
'';
# Wrap the program in a script that sets the LD_LIBRARY_PATH environment variable