From 10de850595f717a34e24bd9098ec8e254a6978b5 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 5 Feb 2019 17:03:58 +0000 Subject: [PATCH] tinycdb: init at 0.7.8 --- .../development/libraries/tinycdb/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/libraries/tinycdb/default.nix 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bfbcbf194151..6394955ed741 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14542,6 +14542,8 @@ in tidyp = callPackage ../development/libraries/tidyp { }; + tinycdb = callPackage ../development/libraries/tinycdb { }; + tinyxml = tinyxml2; tinyxml2 = callPackage ../development/libraries/tinyxml/2.6.2.nix { };