added icons properly
This commit is contained in:
parent
5ee613acf3
commit
7b36dce09d
17
flake.nix
17
flake.nix
@ -45,18 +45,17 @@
|
||||
};
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/pixmaps/
|
||||
|
||||
mkdir -p $out/share/
|
||||
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
|
||||
# dimensions=''${dimension}x''${dimension}
|
||||
# mkdir -p $out/share/icons/hicolor/$dimensions/apps
|
||||
|
||||
# "${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
|
||||
# done
|
||||
"${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
|
||||
done
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user