about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/epub2txt2/default.nix
blob: c8645fc5fe2a20618796139dbc98f4a9e1aaafbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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";
  };
}