depot/third_party/nixpkgs/pkgs/tools/text/epub2txt2/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

24 lines
661 B
Nix

{ 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=";
};
makeFlags = [ "CC:=$(CC)" "PREFIX:=$(out)" ];
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 ];
mainProgram = "epub2txt";
};
}