postman: Link icon to $out/share/icons root

At least on the version of Gnome shipping with CentOS 6, the icon in
$out/share/icons/hicolor/128x128/apps is not picked up, but the icon in
$out/share/icons does get picked up.
This commit is contained in:
d10n 2019-04-03 13:50:36 -04:00
parent 5dbc956869
commit dd47ef70ff

View File

@ -36,9 +36,11 @@ stdenv.mkDerivation rec {
mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications/
iconDir=$out/share/icons/hicolor/128x128/apps
mkdir -p $iconDir
ln -s $out/share/postman/resources/app/assets/icon.png $iconDir/postman.png
iconRootDir=$out/share/icons
iconSizeDir=$out/share/icons/hicolor/128x128/apps
mkdir -p $iconSizeDir
ln -s $out/share/postman/resources/app/assets/icon.png $iconRootDir/postman.png
ln -s $out/share/postman/resources/app/assets/icon.png $iconSizeDir/postman.png
'';
preFixup = let