Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
946 B
Nix
47 lines
946 B
Nix
{
|
|
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";
|
|
};
|
|
|
|
# Fix the build with CMake 4.
|
|
#
|
|
# See: <https://sourceforge.net/p/ebook-tools/bugs/14/>
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail \
|
|
'cmake_minimum_required(VERSION 2.4.0)' \
|
|
'cmake_minimum_required(VERSION 3.10)'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
libxml2
|
|
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;
|
|
};
|
|
}
|