added desktop entry
This commit is contained in:
parent
c9a7f8f8b5
commit
930f509052
17
flake.nix
17
flake.nix
@ -14,6 +14,19 @@
|
||||
|
||||
name = "starc";
|
||||
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 {
|
||||
packages.${system} = {
|
||||
default = pkgs.appimageTools.wrapType1 {
|
||||
@ -23,6 +36,10 @@
|
||||
url = "https://github.com/story-apps/starc/releases/download/v${version}/starc-setup.AppImage";
|
||||
sha256 = "sha256-KLawvuLyqd7aPidH3ghr7mLl9NFQ7nduhnxAq0RpToQ=";
|
||||
};
|
||||
|
||||
extraInstallCommands = ''
|
||||
ln -s "${desktopItem}/share" $out/share
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user