sqld: init at 0.17.2

This commit is contained in:
Mostly Void 2023-07-31 23:29:40 +03:00
parent 0546c70849
commit 4650390d63
No known key found for this signature in database
GPG Key ID: E2B7342D0CAA82C2
3 changed files with 5327 additions and 0 deletions

5268
pkgs/servers/sql/sqld/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,57 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, protobuf
, openssl
, sqlite
, zstd
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sqld";
version = "0.17.2";
src = fetchFromGitHub {
owner = "libsql";
repo = "sqld";
rev = "v${version}";
hash = "sha256-KoEscrzkFJnxxJKL/2r4cY0oLpKdQMjFR3daryzrVKQ=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"libsqlite3-sys-0.26.0" = "sha256-JzSGpqYtkIq0mVYD0kERIB6rmZUttqkCGne+M4vqTJU=";
"octopod-0.1.0" = "sha256-V16fOlIp9BCpyzgh1Aei3Mra/y15v8dQFA8tHdOwZm4=";
};
};
nativeBuildInputs = [
pkg-config
protobuf
rustPlatform.bindgenHook
];
buildInputs = [
openssl
sqlite
zstd
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
env.ZSTD_SYS_USE_PKG_CONFIG = true;
# requires a complex setup with podman for the end-to-end tests
doCheck = false;
meta = {
description = "LibSQL with extended capabilities like HTTP protocol, replication, and more";
homepage = "https://github.com/libsql/sqld";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dit7ya ];
};
}

View File

@ -24851,6 +24851,8 @@ with pkgs;
sv-lang = callPackage ../applications/science/electronics/sv-lang { };
sqld = callPackage ../servers/sql/sqld { };
sqlite = lowPrio (callPackage ../development/libraries/sqlite { });
unqlite = lowPrio (callPackage ../development/libraries/unqlite { });