1{
2 lib,
3 stdenv,
4 fetchurl,
5 perl,
6 zlib,
7 fetchpatch,
8}:
9stdenv.mkDerivation rec {
10 pname = "libeb";
11 version = "4.4.3";
12
13 src = fetchurl {
14 url = "ftp://ftp.sra.co.jp/pub/misc/eb/eb-${version}.tar.bz2";
15 sha256 = "0psbdzirazfnn02hp3gsx7xxss9f1brv4ywp6a15ihvggjki1rxb";
16 };
17
18 patches = [
19 (fetchpatch {
20 name = "gcc-14.patch";
21 url = "https://salsa.debian.org/debian/eb/-/raw/50c84ee2d190083fc88a14e62ef9fef779d088de/debian/patches/0002-gcc14-fix.patch";
22 hash = "sha256-0hht7ojj4MLNfFbemDR2hD1PbSmBxrC2JtDl2WJINlM=";
23 })
24 ];
25
26 nativeBuildInputs = [ perl ];
27 buildInputs = [ zlib ];
28
29 meta = with lib; {
30 description = "C library for accessing Japanese CD-ROM books";
31 longDescription = ''
32 The EB library is a library for accessing CD-ROM books, which are a
33 common way to distribute electronic dictionaries in Japan. It supports
34 the EB, EBG, EBXA, EBXA-C, S-EBXA and EPWING formats.
35 '';
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ ];
38 platforms = with platforms; unix;
39 };
40}