diff options
Diffstat (limited to 'pkgs/tools/text/epub2txt2')
-rw-r--r-- | pkgs/tools/text/epub2txt2/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/text/epub2txt2/default.nix b/pkgs/tools/text/epub2txt2/default.nix new file mode 100644 index 000000000000..3ce0695712f0 --- /dev/null +++ b/pkgs/tools/text/epub2txt2/default.nix @@ -0,0 +1,26 @@ +{ 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!!' + ''; + + 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 ]; + }; +} |