1 { fetchurl, lib, stdenv, zlib, bzip2 }:
3 stdenv.mkDerivation rec {
4 pname = "tokyocabinet";
8 url = "https://dbmx.net/tokyocabinet/${pname}-${version}.tar.gz";
9 sha256 = "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0";
12 buildInputs = [ zlib bzip2 ];
15 sed -i "$out/lib/pkgconfig/tokyocabinet.pc" \
16 -e 's|-lz|-L${zlib.out}/lib -lz|g;
17 s|-lbz2|-L${bzip2.out}/lib -lbz2|g'
21 description = "Tokyo Cabinet: a modern implementation of DBM";
24 Tokyo Cabinet is a library of routines for managing a database. The
25 database is a simple data file containing records, each is a pair of
26 a key and a value. Every key and value is serial bytes with
27 variable length. Both binary data and character string can be used
28 as a key and a value. There is neither concept of data tables nor
29 data types. Records are organized in hash table, B+ tree, or
32 Tokyo Cabinet is developed as the successor of GDBM and QDBM on the
33 following purposes. They are achieved and Tokyo Cabinet replaces
34 conventional DBM products: improves space efficiency, improves time
35 efficiency, improves parallelism, improves usability, improves
36 robustness, supports 64-bit architecture.
39 license = lib.licenses.lgpl2Plus;
42 platforms = lib.platforms.unix;