nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 992 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 makeWrapper, 6 unzip, 7 catdoc, 8}: 9 10stdenv.mkDerivation { 11 pname = "catdocx"; 12 version = "0-unstable-2017-01-02"; 13 14 src = fetchFromGitHub { 15 owner = "jncraton"; 16 repo = "catdocx"; 17 rev = "04fa0416ec1f116d4996685e219f0856d99767cb"; 18 sha256 = "1sxiqhkvdqn300ygfgxdry2dj2cqzjhkzw13c6349gg5vxfypcjh"; 19 }; 20 21 nativeBuildInputs = [ makeWrapper ]; 22 23 installPhase = '' 24 mkdir -p $out/libexec $out/bin 25 cp catdocx.sh $out/libexec 26 chmod +x $out/libexec/catdocx.sh 27 wrapProgram $out/libexec/catdocx.sh --prefix PATH : "${ 28 lib.makeBinPath [ 29 unzip 30 catdoc 31 ] 32 }" 33 ln -s $out/libexec/catdocx.sh $out/bin/catdocx 34 ''; 35 36 meta = { 37 description = "Extracts plain text from docx files"; 38 mainProgram = "catdocx"; 39 homepage = "https://github.com/jncraton/catdocx"; 40 license = with lib.licenses; [ bsd3 ]; 41 maintainers = [ lib.maintainers.michalrus ]; 42 platforms = lib.platforms.all; 43 }; 44}