nixpkgs-suyu/pkgs/tools/text/ebook-tools/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

25 lines
678 B
Nix

{ stdenv, fetchurl, cmake, pkgconfig, libxml2, libzip }:
stdenv.mkDerivation rec {
name = "ebook-tools-0.2.2";
src = fetchurl {
url = "mirror://sourceforge/ebook-tools/${name}.tar.gz";
sha256 = "1bi7wsz3p5slb43kj7lgb3r6lb91lvb6ldi556k4y50ix6b5khyb";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake 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 = [ ];
platforms = stdenv.lib.platforms.all;
};
}