1 { stdenv, lib, libsForQt5, libglvnd, libX11, libXi, fetchurl, makeDesktopItem }:
3 desktopItem = makeDesktopItem {
6 comment = "A word processor for handwriting";
10 categories = [ "Office" "Graphics" ];
13 stdenv.mkDerivation rec {
14 pname = "styluslabs-write-bin";
18 url = "http://www.styluslabs.com/write/write${version}.tar.gz";
19 sha256 = "0h1wf3af7jzp3f3l8mlnshi83d7a4v4y8nfqfai4lmskyicqlz7c";
29 # symlink the binary to bin/
30 ln -s $out/Write/Write $out/bin/Write
33 mkdir -p $out/share/applications
34 ln -s ${desktopItem}/share/applications/* $out/share/applications/
35 mkdir -p $out/share/icons
36 ln -s $out/Write/Write144x144.png $out/share/icons/write_stylus.png
39 libPath = lib.makeLibraryPath [
40 libsForQt5.qtbase # libQt5PrintSupport.so.5
41 libsForQt5.qtsvg # libQt5Svg.so.5
42 stdenv.cc.cc.lib # libstdc++.so.6
49 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
50 --set-rpath "${libPath}" \
55 homepage = "http://www.styluslabs.com/";
56 description = "Write is a word processor for handwriting";
57 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
58 platforms = platforms.linux;
59 license = lib.licenses.unfree;
60 maintainers = with maintainers; [ oyren lukts30 atemu ];