made icon more dynamic
This commit is contained in:
parent
18ef8800fc
commit
386041265a
17
flake.nix
17
flake.nix
@ -15,21 +15,22 @@
|
||||
name = "starc";
|
||||
version = "0.6.4";
|
||||
|
||||
icon = pkgs.fetchurl {
|
||||
url = "https://github.com/story-apps/starc/blob/v${version}/img/starc.png";
|
||||
sha256 = "sha256-wixqb1cV+WEhgxsl2CeOjrid4P0daHqh0O40h2iPst4=";
|
||||
};
|
||||
|
||||
desktopItem = pkgs.makeDesktopItem {
|
||||
exec = name;
|
||||
|
||||
inherit name;
|
||||
desktopName = "Story Architect";
|
||||
genericName = "Storywriting Software";
|
||||
|
||||
icon = name;
|
||||
|
||||
comment = "Advanced text editor for script writers.";
|
||||
categories = ["Office" "TextEditor" "Utility"];
|
||||
|
||||
mimeTypes = ["application/x-${name}"];
|
||||
|
||||
icon = pkgs.fetchurl {
|
||||
url = "https://github.com/story-apps/starc/blob/v${version}/img/starc.png";
|
||||
sha256 = "sha256-wixqb1cV+WEhgxsl2CeOjrid4P0daHqh0O40h2iPst4=";
|
||||
};
|
||||
};
|
||||
in {
|
||||
packages.${system} = {
|
||||
@ -42,6 +43,8 @@
|
||||
};
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/icons/hicolor/1024x1024/apps/
|
||||
ln -s "${icon}" $out/share/icons/hicolor/1024x1024/apps/${name}.png
|
||||
ln -s "${desktopItem}/share" $out/share
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user