diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-10-30 21:44:29 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-10-30 21:44:29 +0000 |
commit | eb40c213dd4a89213239870fdc2b0b7b04b9fc5e (patch) | |
tree | 4e782e9dc9938aa3571dfdaf9c7e21fe6a2c8805 /pkgs/development/libraries/tokyo-cabinet | |
parent | b6072abeac046b2d1ce0f032020d1226339c7dd9 (diff) | |
download | nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.tar nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.tar.gz nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.tar.bz2 nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.tar.lz nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.tar.xz nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.tar.zst nixpkgs-eb40c213dd4a89213239870fdc2b0b7b04b9fc5e.zip |
Add Tokyo Cabinet, a key-value database that performs better.
svn path=/nixpkgs/trunk/; revision=24548
Diffstat (limited to 'pkgs/development/libraries/tokyo-cabinet')
-rw-r--r-- | pkgs/development/libraries/tokyo-cabinet/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tokyo-cabinet/default.nix b/pkgs/development/libraries/tokyo-cabinet/default.nix new file mode 100644 index 00000000000..59afb3345ca --- /dev/null +++ b/pkgs/development/libraries/tokyo-cabinet/default.nix @@ -0,0 +1,45 @@ +{ fetchurl, stdenv, zlib, bzip2 }: + +stdenv.mkDerivation rec { + name = "tokyocabinet-1.4.46"; + + src = fetchurl { + url = "http://www.1978th.net/tokyocabinet/${name}.tar.gz"; + sha256 = "18rkv6kq43cqabc9mvfw534nsv6v8bc2i2r2bmax0yxnbhqa7ahf"; + }; + + buildInputs = [ zlib bzip2 ]; + + doCheck = true; + + postInstall = + '' sed -i "$out/lib/pkgconfig/tokyocabinet.pc" \ + -e 's|-lz|-L${zlib}/lib -lz|g; + s|-lbz2|-L${bzip2}/lib -lbz2|g' + ''; + + 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. + ''; + + license = "LGPLv2+"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.unix; + }; +} |