Merge pull request #35105 from michalrus/catdocx
catdocx: init at 20170102
This commit is contained in:
commit
57062da954
30
pkgs/tools/text/catdocx/default.nix
Normal file
30
pkgs/tools/text/catdocx/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, unzip, catdoc }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "catdocx-20170102";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jncraton";
|
||||||
|
repo = "catdocx";
|
||||||
|
rev = "04fa0416ec1f116d4996685e219f0856d99767cb";
|
||||||
|
sha256 = "1sxiqhkvdqn300ygfgxdry2dj2cqzjhkzw13c6349gg5vxfypcjh";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/libexec $out/bin
|
||||||
|
cp catdocx.sh $out/libexec
|
||||||
|
chmod +x $out/libexec/catdocx.sh
|
||||||
|
wrapProgram $out/libexec/catdocx.sh --prefix PATH : "${lib.makeBinPath [ unzip catdoc ]}"
|
||||||
|
ln -s $out/libexec/catdocx.sh $out/bin/catdocx
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Extracts plain text from docx files";
|
||||||
|
homepage = https://github.com/jncraton/catdocx;
|
||||||
|
license = with licenses; [ bsd3 ];
|
||||||
|
maintainers = [ maintainers.michalrus ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -931,6 +931,8 @@ with pkgs;
|
|||||||
|
|
||||||
catdoc = callPackage ../tools/text/catdoc { };
|
catdoc = callPackage ../tools/text/catdoc { };
|
||||||
|
|
||||||
|
catdocx = callPackage ../tools/text/catdocx { };
|
||||||
|
|
||||||
catclock = callPackage ../applications/misc/catclock { };
|
catclock = callPackage ../applications/misc/catclock { };
|
||||||
|
|
||||||
cde = callPackage ../tools/package-management/cde { };
|
cde = callPackage ../tools/package-management/cde { };
|
||||||
|
Loading…
Reference in New Issue
Block a user