1 { stdenv, lib, fetchFromGitHub, makeWrapper, unzip, catdoc }:
5 version = "unstable-2017-01-02";
7 src = fetchFromGitHub {
10 rev = "04fa0416ec1f116d4996685e219f0856d99767cb";
11 sha256 = "1sxiqhkvdqn300ygfgxdry2dj2cqzjhkzw13c6349gg5vxfypcjh";
14 nativeBuildInputs = [ makeWrapper ];
17 mkdir -p $out/libexec $out/bin
18 cp catdocx.sh $out/libexec
19 chmod +x $out/libexec/catdocx.sh
20 wrapProgram $out/libexec/catdocx.sh --prefix PATH : "${lib.makeBinPath [ unzip catdoc ]}"
21 ln -s $out/libexec/catdocx.sh $out/bin/catdocx
25 description = "Extracts plain text from docx files";
26 mainProgram = "catdocx";
27 homepage = "https://github.com/jncraton/catdocx";
28 license = with licenses; [ bsd3 ];
29 maintainers = [ maintainers.michalrus ];
30 platforms = platforms.all;