From 930f5090524adce783561d439bddeba4547cb71a Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Thu, 25 Jan 2024 12:55:25 +0100 Subject: [PATCH] added desktop entry --- flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 + ''; }; }; };