depot/third_party/nixpkgs/pkgs/tools/text/epub2txt2/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

24 lines
658 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "epub2txt2";
version = "2.07";
src = fetchFromGitHub {
owner = "kevinboone";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-/P81ZXhB0wyRx2bb/CO7+kTTNspYKoGUpBGLb8Yfb5I=";
};
makeFlags = [ "CC:=$(CC)" "PREFIX:=$(out)" ];
meta = {
description = "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 ];
mainProgram = "epub2txt";
};
}