Packaging/Icons: Difference between revisions
imported>Milahu m add imagemagick for the convert command |
Phanirithvij (talk | contribs) fix scribus 1.4 link before it got deleted, add a link to obsidian icon handling |
||
Line 3: | Line 3: | ||
Application icons should be installed to <code>$out/share/icons/hicolor</code>. | Application icons should be installed to <code>$out/share/icons/hicolor</code>. | ||
Example code for the [https://github.com/ | Example code for the now outdated [https://github.com/nixos/nixpkgs/blob/c8e5c5c2228ddd58f01b7229e0bb4a92a9585990/pkgs/applications/office/scribus/1_4.nix scribus v1.4] app: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
Line 40: | Line 40: | ||
<code>-background none</code> will create transparent icons. | <code>-background none</code> will create transparent icons. | ||
Alternative: <code>-background white</code>. | Alternative: <code>-background white</code>. | ||
See also: | |||
Another example handling icons [https://github.com/NixOS/nixpkgs/blob/6d8e9b4f6197f7ce5106069f13debfc8e9b1fa8b/pkgs/applications/misc/obsidian/default.nix#L62 obsidian]. |