changed icon folder
This commit is contained in:
parent
b2f8e566b7
commit
5ee613acf3
14
flake.nix
14
flake.nix
@ -45,16 +45,18 @@
|
||||
};
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/icons/
|
||||
mkdir -p $out/share/pixmaps/
|
||||
|
||||
ln -s "${desktopItem}/share/applications" $out/share/applications
|
||||
|
||||
for dimension in 128 256 512; do
|
||||
dimensions=''${dimension}x''${dimension}
|
||||
mkdir -p $out/share/icons/hicolor/$dimensions/apps
|
||||
ln -s "${icon}" $out/share/pixmaps/${name}.png
|
||||
|
||||
"${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
|
||||
done
|
||||
# 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user