diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/ebook-tools/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/ebook-tools/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/ebook-tools/default.nix b/nixpkgs/pkgs/tools/text/ebook-tools/default.nix new file mode 100644 index 000000000000..1a46110e2a42 --- /dev/null +++ b/nixpkgs/pkgs/tools/text/ebook-tools/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchurl, cmake, pkg-config, libxml2, libzip }: + +stdenv.mkDerivation rec { + pname = "ebook-tools"; + version = "0.2.2"; + + src = fetchurl { + url = "mirror://sourceforge/ebook-tools/ebook-tools-${version}.tar.gz"; + sha256 = "1bi7wsz3p5slb43kj7lgb3r6lb91lvb6ldi556k4y50ix6b5khyb"; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ libxml2 libzip ]; + + preConfigure = + '' + NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libzip)" + ''; + + meta = with lib; { + homepage = "http://ebook-tools.sourceforge.net"; + description = "Tools and library for dealing with various ebook file formats"; + maintainers = [ ]; + platforms = platforms.all; + license = licenses.mit; + }; +} |