added icons properly

This commit is contained in:
Kristian Krsnik 2024-01-25 15:31:55 +01:00
parent 5ee613acf3
commit 7b36dce09d
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -45,18 +45,17 @@
}; };
extraInstallCommands = '' extraInstallCommands = ''
mkdir -p $out/share/pixmaps/ mkdir -p $out/share/
ln -s "${desktopItem}/share/applications" $out/share/applications ln -s "${desktopItem}/share/applications" $out/share/applications
ln -s "${icon}" $out/share/pixmaps/${name}.png # Install icons
mkdir -p $out/share/icons/
for dimension in 128 256 512; do
dimensions=''${dimension}x''${dimension}
mkdir -p $out/share/icons/hicolor/$dimensions/apps
# for dimension in 128 256 512; do "${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
# dimensions=''${dimension}x''${dimension} done
# mkdir -p $out/share/icons/hicolor/$dimensions/apps
# "${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
# done
''; '';
}; };
}; };