diff --git a/flake.nix b/flake.nix index bb0aba8..832b22d 100644 --- a/flake.nix +++ b/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 + ''; }; }; };