diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a9c45507d9b9..09be7076e579 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/tools/text/epub2txt2/default.nix b/pkgs/tools/text/epub2txt2/default.nix new file mode 100644 index 000000000000..b648d706e5fa --- /dev/null +++ b/pkgs/tools/text/epub2txt2/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2f0a3d0038f2..586fdbd654fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };