Skip to content

Commit

Permalink
wordgrinder: init at 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbeyer authored and dezgeg committed Nov 3, 2017
1 parent 4b15ca2 commit 208fd87
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -17157,6 +17157,8 @@ with pkgs;

wordnet = callPackage ../applications/misc/wordnet { };

wordgrinder = callPackage ../applications/office/wordgrinder { };

worker = callPackage ../applications/misc/worker { };

workrave = callPackage ../applications/misc/workrave {
Expand Down

0 comments on commit 208fd87

Please sign in to comment.