diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-11-21 15:15:29 +0100 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2017-11-03 12:26:54 +0200 |
commit | 208fd871492afcdec456326657fbf9376b5c5704 (patch) | |
tree | 613484181af01c2691871663bfb192c3ae6c1aa1 /pkgs/applications/office | |
parent | 4b15ca22488a3f29c4a7d281855df5818b82afd4 (diff) | |
download | nixlib-208fd871492afcdec456326657fbf9376b5c5704.tar nixlib-208fd871492afcdec456326657fbf9376b5c5704.tar.gz nixlib-208fd871492afcdec456326657fbf9376b5c5704.tar.bz2 nixlib-208fd871492afcdec456326657fbf9376b5c5704.tar.lz nixlib-208fd871492afcdec456326657fbf9376b5c5704.tar.xz nixlib-208fd871492afcdec456326657fbf9376b5c5704.tar.zst nixlib-208fd871492afcdec456326657fbf9376b5c5704.zip |
wordgrinder: init at 0.6
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r-- | pkgs/applications/office/wordgrinder/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/office/wordgrinder/default.nix b/pkgs/applications/office/wordgrinder/default.nix new file mode 100644 index 000000000000..67f7e2816a48 --- /dev/null +++ b/pkgs/applications/office/wordgrinder/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchFromGitHub, pkgconfig, makeWrapper +, lua52Packages, libXft, ncurses, readline, zlib }: + +stdenv.mkDerivation rec { + name = "wordgrinder-${version}"; + version = "0.6-db14181"; + + src = fetchFromGitHub { + repo = "wordgrinder"; + owner = "davidgiven"; + rev = "db141815e8bd1da6e684a1142a59492e516f3041"; + sha256 = "1l1jqzcqiwnc8r1igfi7ay4pzzhdhss81znnmfr4rc1ia8bpdjc2"; + }; + + makeFlags = [ + "PREFIX=$(out)" + "LUA_INCLUDE=${lua52Packages.lua}/include" + "LUA_LIB=${lua52Packages.lua}/lib/liblua.so" + ]; + + nativeBuildInputs = [ pkgconfig makeWrapper ]; + + buildInputs = [ + libXft + lua52Packages.lua + ncurses + readline + zlib + ]; + + # To be able to find <Xft.h> + NIX_CFLAGS_COMPILE = "-I${libXft.dev}/include/X11"; + + # Binaries look for LuaFileSystem library (lfs.so) at runtime + postInstall = '' + wrapProgram $out/bin/wordgrinder --set LUA_CPATH "${lua52Packages.luafilesystem}/lib/lua/5.2/lfs.so"; + wrapProgram $out/bin/xwordgrinder --set LUA_CPATH "${lua52Packages.luafilesystem}/lib/lua/5.2/lfs.so"; + ''; + + meta = with stdenv.lib; { + description = "Text-based word processor"; + homepage = https://cowlark.com/wordgrinder; + license = licenses.mit; + maintainers = with maintainers; [ matthiasbeyer ]; + platforms = with stdenv.lib.platforms; linux; + }; +} |