Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_stylus: init at 209 #43044

Merged
merged 1 commit into from
Jul 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2938,6 +2938,11 @@
github = "oxij";
name = "Jan Malakhovski";
};
oyren = {
email = "m.scheuren@oyra.eu";
github = "oyren";
name = "Moritz Scheuren";
};
pSub = {
email = "mail@pascal-wittmann.de";
github = "pSub";
Expand Down
52 changes: 52 additions & 0 deletions pkgs/applications/graphics/write_stylus/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ stdenv, lib, qtbase, qtsvg, makeWrapper, fetchurl, makeDesktopItem }:
stdenv.mkDerivation rec {
name = "write_stylus-${version}";
version = "209";

desktopItem = makeDesktopItem {
name = "Write";
exec = "Write";
comment = "a word processor for hadwriting";
desktopName = "Write";
genericName = "Write";
categories = "Office;Graphics";
};

src = fetchurl {
url = "http://www.styluslabs.com/write/write${version}.tar.gz";
sha256 = "1p6glp4vdpwl8hmhypayc4cvs3j9jfmjfhhrgqm2xkgl5bfbv2qd";
};
sourceRoot = ".";

dontBuild = true;

installPhase = ''
mkdir -p $out/bin
cp -R Write $out/
# symlink the binary to bin/
ln -s $out/Write/Write $out/bin/Write

mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications/
'';
preFixup = let
libPath = lib.makeLibraryPath [
qtbase # libQt5PrintSupport.so.5
qtsvg # libQt5Svg.so.5
stdenv.cc.cc.lib # libstdc++.so.6
];
in ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/Write/Write
'';

meta = with stdenv.lib; {
homepage = http://www.styluslabs.com/;
description = "Write is a word processor for handwriting.";
platforms = platforms.linux;
license = stdenv.lib.licenses.unfree;
maintainers = with maintainers; [ oyren ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18818,6 +18818,8 @@ with pkgs;
erlang = erlangR18;
};

write_stylus = libsForQt5.callPackage ../applications/graphics/write_stylus { };

alsamixer.app = callPackage ../applications/window-managers/windowmaker/dockapps/alsamixer.app.nix { };

wllvm = callPackage ../development/tools/wllvm { };
Expand Down