write_stylus: add desktop icon (#43864)

This commit is contained in:
Oyren 2018-07-21 20:20:12 +02:00 committed by Jörg Thalheim
parent 5e05b0a105
commit 7ffed91faf

View file

@ -6,7 +6,8 @@ stdenv.mkDerivation rec {
desktopItem = makeDesktopItem {
name = "Write";
exec = "Write";
comment = "a word processor for hadwriting";
comment = "A word processor for handwriting";
icon = "write_stylus";
desktopName = "Write";
genericName = "Write";
categories = "Office;Graphics";
@ -16,6 +17,14 @@ stdenv.mkDerivation rec {
url = "http://www.styluslabs.com/write/write${version}.tar.gz";
sha256 = "1p6glp4vdpwl8hmhypayc4cvs3j9jfmjfhhrgqm2xkgl5bfbv2qd";
};
# taken from: https://www.iconfinder.com/icons/50835/edit_pencil_write_icon
# license: Free for commercial use
icon = fetchurl {
url = "https://oyra.eu/write/icon.tar.gz";
sha256 = "1zd98g63apwi17qc1hm1g14maain5d18g4afadxm30qjz2s0mvs8";
};
sourceRoot = ".";
dontBuild = true;
@ -26,6 +35,9 @@ stdenv.mkDerivation rec {
# symlink the binary to bin/
ln -s $out/Write/Write $out/bin/Write
# untar icons
tar -xzf ${icon} *.tar.gz -C $out/
mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications/
'';