added desktop entry

This commit is contained in:
Kristian Krsnik 2024-01-25 12:55:25 +01:00
parent c9a7f8f8b5
commit 930f509052
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -14,6 +14,19 @@
name = "starc"; name = "starc";
version = "0.6.4"; version = "0.6.4";
desktopItem = pkgs.makeDesktopItem {
name = "starc";
exec = name;
# icon = name;
icon = pkgs.fetchurl {
url = "https://github.com/story-apps/starc/blob/v${version}/img/starc.png";
sha256 = "sha256-wixqb1cV+WEhgxsl2CeOjrid4P0daHqh0O40h2iPst4=";
};
desktopName = "Starc";
comment = "Advanced text editor for script writers.";
categories = ["Office" "TextEditor" "Utility"];
};
in { in {
packages.${system} = { packages.${system} = {
default = pkgs.appimageTools.wrapType1 { default = pkgs.appimageTools.wrapType1 {
@ -23,6 +36,10 @@
url = "https://github.com/story-apps/starc/releases/download/v${version}/starc-setup.AppImage"; url = "https://github.com/story-apps/starc/releases/download/v${version}/starc-setup.AppImage";
sha256 = "sha256-KLawvuLyqd7aPidH3ghr7mLl9NFQ7nduhnxAq0RpToQ="; sha256 = "sha256-KLawvuLyqd7aPidH3ghr7mLl9NFQ7nduhnxAq0RpToQ=";
}; };
extraInstallCommands = ''
ln -s "${desktopItem}/share" $out/share
'';
}; };
}; };
}; };