diff --git a/flake.nix b/flake.nix index b3c0e6d..612ec93 100644 --- a/flake.nix +++ b/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 ''; }; };