2021-01-21 17:00:13 +00:00
|
|
|
{ fetchurl, lib, stdenv, zlib, bzip2 }:
|
2010-10-30 22:44:29 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-15 05:53:53 +00:00
|
|
|
name = "tokyocabinet-1.4.48";
|
2010-10-30 22:44:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-15 05:53:53 +00:00
|
|
|
url = "http://fallabs.com/tokyocabinet/${name}.tar.gz";
|
|
|
|
sha256 = "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0";
|
2010-10-30 22:44:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
'' sed -i "$out/lib/pkgconfig/tokyocabinet.pc" \
|
2016-01-24 07:30:24 +00:00
|
|
|
-e 's|-lz|-L${zlib.out}/lib -lz|g;
|
2016-01-24 07:29:00 +00:00
|
|
|
s|-lbz2|-L${bzip2.out}/lib -lbz2|g'
|
2010-10-30 22:44:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tokyo Cabinet: a modern implementation of DBM";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Tokyo Cabinet is a library of routines for managing a database. The
|
|
|
|
database is a simple data file containing records, each is a pair of
|
|
|
|
a key and a value. Every key and value is serial bytes with
|
|
|
|
variable length. Both binary data and character string can be used
|
|
|
|
as a key and a value. There is neither concept of data tables nor
|
|
|
|
data types. Records are organized in hash table, B+ tree, or
|
|
|
|
fixed-length array.
|
|
|
|
|
|
|
|
Tokyo Cabinet is developed as the successor of GDBM and QDBM on the
|
|
|
|
following purposes. They are achieved and Tokyo Cabinet replaces
|
|
|
|
conventional DBM products: improves space efficiency, improves time
|
|
|
|
efficiency, improves parallelism, improves usability, improves
|
|
|
|
robustness, supports 64-bit architecture.
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2010-10-30 22:44:29 +01:00
|
|
|
|
2013-08-16 22:44:33 +01:00
|
|
|
maintainers = [ ];
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2010-10-30 22:44:29 +01:00
|
|
|
};
|
|
|
|
}
|