Merge pull request #233342 from leonidbelyaev/master

added epub2txt2
This commit is contained in:
Nick Cao 2023-05-22 21:12:48 -06:00 committed by GitHub
commit b956863fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 0 deletions

View File

@ -8936,6 +8936,12 @@
githubId = 1572058;
name = "Leonardo Cecchi";
};
leonid = {
email = "belyaev.l@northeastern.edu";
github = "leonidbelyaev";
githubId = 77865363;
name = "Leonid Belyaev";
};
leshainc = {
email = "leshainc@fomalhaut.me";
github = "LeshaInc";

View File

@ -0,0 +1,28 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "epub2txt2";
version = "2.06";
src = fetchFromGitHub {
owner = "kevinboone";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-zzcig5XNh9TqUHginsfoC47WrKavqi6k6ezir+OOMJk=";
};
preConfigure = ''
sed -i Makefile -e 's!DESTDIR)!out)!'
sed -i Makefile -e 's!/usr!!'
'';
makeFlags = [ "CC:=$(CC)" ];
meta = {
description = "A simple command-line utility for Linux, for extracting text from EPUB documents.";
homepage = "https://github.com/kevinboone/epub2txt2";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.leonid ];
};
}

View File

@ -7081,6 +7081,8 @@ with pkgs;
engauge-digitizer = libsForQt5.callPackage ../applications/science/math/engauge-digitizer { };
epub2txt2 = callPackage ../tools/text/epub2txt2 { };
epubcheck = callPackage ../tools/text/epubcheck { };
evil-winrm = callPackage ../tools/security/evil-winrm { };