pkgs/ultimatepp: add theide icon

This commit is contained in:
Wroclaw 2025-05-23 19:40:22 +02:00
parent 4aa2e34ff6
commit 35259d4999

View file

@ -5,6 +5,8 @@
makeWrapper, makeWrapper,
pkg-config, pkg-config,
stdenv, stdenv,
makeDesktopItem,
copyDesktopItems,
# pkg-config dependencies # pkg-config dependencies
libpng, libpng,
@ -60,7 +62,7 @@ in {
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper
pkg-config pkg-config
]; ] ++ lib.optional (!self.passthru.bootstrap) copyDesktopItems;
buildInputs = uppsrcDependencies ++ lib.optional (!self.passthru.bootstrap) libclang; buildInputs = uppsrcDependencies ++ lib.optional (!self.passthru.bootstrap) libclang;
@ -112,10 +114,29 @@ in {
wrapProgram $out/bin/theide \ wrapProgram $out/bin/theide \
--unset WAYLAND_DISPLAY --unset WAYLAND_DISPLAY
mkdir -p $out/share/icons/hicolor/scalable/apps
cp uppsrc/ide/icon.svg $out/share/icons/hicolor/scalable/apps/ultimatepp-theide.svg
for size in 16 32 64 128 256 512; do
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps
cp uppsrc/ide/icon''${size}x''${size}.png $out/share/icons/hicolor/''${size}x''${size}/apps/ultimatepp-theide.png
done
'') + '' '') + ''
runHook postInstall runHook postInstall
''; '';
desktopItems = [
(makeDesktopItem {
name = "ultimatepp-theide";
exec = "theide";
icon = "ultimatepp-theide";
desktopName = "TheIDE";
comment = "The Ultimate++ Framework IDE";
categories = [ "Development" "IDE" ];
terminal = false;
})
];
passthru = { passthru = {
bootstrap = false; bootstrap = false;
inherit uppsrcDependencies; inherit uppsrcDependencies;