about summary refs log tree commit diff
path: root/pkgs/applications/graphics/write_stylus
diff options
context:
space:
mode:
authorOyren <m.scheuren@oyra.eu>2018-07-21 20:20:12 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2018-07-21 19:20:12 +0100
commit7ffed91faf7ae50573e08690d3f1963d827575a5 (patch)
treec3f6826dab359bb37ce10cea3a4c7fbc37d82aed /pkgs/applications/graphics/write_stylus
parent5e05b0a1055bb83ad0ddaae60da7102f4a4ece15 (diff)
write_stylus: add desktop icon (#43864)
Diffstat (limited to 'pkgs/applications/graphics/write_stylus')
-rw-r--r--pkgs/applications/graphics/write_stylus/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/write_stylus/default.nix b/pkgs/applications/graphics/write_stylus/default.nix
index 231a9799b59f8..9fd464f46204d 100644
--- a/pkgs/applications/graphics/write_stylus/default.nix
+++ b/pkgs/applications/graphics/write_stylus/default.nix
@@ -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/
   '';