From 87056f5fa18af3253c739ce89f64a72c3a982832 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Tue, 13 Oct 2020 21:33:37 -0300 Subject: [PATCH] unqlite: init at 1.1.9 --- .../development/libraries/unqlite/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/libraries/unqlite/default.nix diff --git a/pkgs/development/libraries/unqlite/default.nix b/pkgs/development/libraries/unqlite/default.nix new file mode 100644 index 000000000000..9d0ab3868565 --- /dev/null +++ b/pkgs/development/libraries/unqlite/default.nix @@ -0,0 +1,39 @@ +{ stdenv +, fetchFromGitHub +, cmake }: + +stdenv.mkDerivation rec { + pname = "unqlite"; + version = "1.1.9"; + + src = fetchFromGitHub { + owner = "symisc"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-WLsyGEt7Xe6ZrOGMO7+3TU2sBgDTSmfD1WzD70pcDjo="; + }; + + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + homepage = "https://unqlite.org/"; + description = "Self-contained, serverless, zero-conf, transactional NoSQL DB library"; + longDescription = '' + UnQLite is a in-process software library which implements a + self-contained, serverless, zero-configuration, transactional NoSQL + database engine. UnQLite is a document store database similar to MongoDB, + Redis, CouchDB etc. as well a standard Key/Value store similar to + BerkeleyDB, LevelDB, etc. + + UnQLite is an embedded NoSQL (Key/Value store and Document-store) database + engine. Unlike most other NoSQL databases, UnQLite does not have a + separate server process. UnQLite reads and writes directly to ordinary + disk files. A complete database with multiple collections, is contained in + a single disk file. The database file format is cross-platform, you can + freely copy a database between 32-bit and 64-bit systems or between + big-endian and little-endian architectures. + ''; + maintainers = with maintainers; [ AndersonTorres ]; + license = licenses.bsd2; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 78dd13023808..2168e52f4be5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15548,6 +15548,8 @@ in sqlite = lowPrio (callPackage ../development/libraries/sqlite { }); + unqlite = lowPrio (callPackage ../development/libraries/unqlite { }); + inherit (callPackage ../development/libraries/sqlite/tools.nix { inherit (darwin.apple_sdk.frameworks) Foundation; }) sqlite-analyzer sqldiff;