about summary refs log tree commit diff
path: root/pkgs/tools/text/ebook-tools/default.nix
blob: abb766928d74f34c8466415b2f88eb10881e4109 (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
{ stdenv, fetchurl, cmake, pkgconfig, libxml2, libzip }:

stdenv.mkDerivation rec {
  name = "ebook-tools-0.2.1";

  src = fetchurl {
    url = "mirror://sourceforge/ebook-tools/${name}.tar.gz";
    sha256 = "0wgwdsd3jwwfg36jyr5j0wayqjli3ia80lxzk10byd4cmkywnhy2";
  };

  buildInputs = [ cmake pkgconfig libxml2 libzip ];

  preConfigure = 
    ''
      NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libzip)"
    '';

  meta = {
    homepage = "http://ebook-tools.sourceforge.net";
    description = "Tools and library for dealing with various ebook file formats";
    maintainers = [ stdenv.lib.maintainers.urkud ];
    platforms = stdenv.lib.platforms.all;
  };
}