1 { stdenv, lib, fetchFromGitHub, makeWrapper, unzip, catdoc }:
4 name = "catdocx-20170102";
6 src = fetchFromGitHub {
9 rev = "04fa0416ec1f116d4996685e219f0856d99767cb";
10 sha256 = "1sxiqhkvdqn300ygfgxdry2dj2cqzjhkzw13c6349gg5vxfypcjh";
13 nativeBuildInputs = [ makeWrapper ];
16 mkdir -p $out/libexec $out/bin
17 cp catdocx.sh $out/libexec
18 chmod +x $out/libexec/catdocx.sh
19 wrapProgram $out/libexec/catdocx.sh --prefix PATH : "${lib.makeBinPath [ unzip catdoc ]}"
20 ln -s $out/libexec/catdocx.sh $out/bin/catdocx
24 description = "Extracts plain text from docx files";
25 homepage = "https://github.com/jncraton/catdocx";
26 license = with licenses; [ bsd3 ];
27 maintainers = [ maintainers.michalrus ];
28 platforms = platforms.all;