diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2020-03-10 16:28:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 16:28:46 -0700 |
commit | 5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2 (patch) | |
tree | f82b0d3f2cc796469cb689d7de5ea295fb0f32c7 /pkgs/development/libraries | |
parent | 724650fa90143e02e5d5a5f223320cd516bedc4d (diff) | |
parent | 10de850595f717a34e24bd9098ec8e254a6978b5 (diff) | |
download | nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.tar nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.tar.gz nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.tar.bz2 nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.tar.lz nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.tar.xz nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.tar.zst nixlib-5d6cdc6f3fdf5cba84154a73b24304c3fb5487f2.zip |
Merge pull request #55279 from KAction/libcdb
tinycdb: init at 0.7.8
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/tinycdb/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tinycdb/default.nix b/pkgs/development/libraries/tinycdb/default.nix new file mode 100644 index 000000000000..19b8640f8665 --- /dev/null +++ b/pkgs/development/libraries/tinycdb/default.nix @@ -0,0 +1,36 @@ +{ stdenv, lib, fetchurl }: + +stdenv.mkDerivation rec { + pname = "tinycdb"; + version = "0.78"; + outputs = [ "out" "dev" "lib" "man" ]; + separateDebugInfo = true; + makeFlags = [ "prefix=$(out)" "staticlib" "sharedlib" "cdb-shared" ]; + postInstall = '' + mkdir -p $lib/lib $dev/lib $out/bin + cp libcdb.so* $lib/lib + cp cdb-shared $out/bin/cdb + mv $out/lib/libcdb.a $dev/lib + rmdir $out/lib + ''; + + src = fetchurl { + url = "http://www.corpit.ru/mjt/tinycdb/${pname}-${version}.tar.gz"; + sha256 = "0g6n1rr3lvyqc85g6z44lw9ih58f2k1i3v18yxlqvnla5m1qyrsh"; + }; + + meta = with lib; { + + description = "utility to manipulate constant databases (cdb)"; + + longDescription = '' + tinycdb is a small, fast and reliable utility and subroutine + library for creating and reading constant databases. The database + structure is tuned for fast reading. + ''; + + homepage = https://www.corpit.ru/mjt/tinycdb.html; + license = licenses.publicDomain; + platforms = platforms.linux; + }; +} |