mongoc: 1.8.0 -> 1.23.1

This commit is contained in:
archer-65 2022-11-23 23:53:01 +01:00
parent af50806f7c
commit 78708cb7b2
No known key found for this signature in database
GPG Key ID: 56FC322EE7325AB1
2 changed files with 31 additions and 7 deletions

View File

@ -1071,6 +1071,12 @@
githubId = 56009;
name = "Arcadio Rubio García";
};
archer-65 = {
email = "mario.liguori.056@gmail.com";
github = "archer-65";
githubId = 76066109;
name = "Mario Liguori";
};
archseer = {
email = "blaz@mxxn.io";
github = "archseer";

View File

@ -1,19 +1,36 @@
{ lib, stdenv, fetchzip, perl, pkg-config, libbson
, openssl, which, zlib, snappy
{
lib,
stdenv,
fetchzip,
cmake,
pkg-config,
perl,
openssl,
zlib,
cyrus_sasl,
libbson,
snappy,
}:
stdenv.mkDerivation rec {
pname = "mongoc";
version = "1.8.0";
version = "1.23.1";
src = fetchzip {
url = "https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz";
sha256 = "1vnnk3pwbcmwva1010bl111kdcdx3yb2w7j7a78hhvrm1k9r1wp8";
};
nativeBuildInputs = [ pkg-config which perl ];
buildInputs = [ openssl zlib ];
propagatedBuildInputs = [ libbson snappy ];
# https://github.com/NixOS/nixpkgs/issues/25585
preFixup = ''rm -rf "$(pwd)" '';
nativeBuildInputs = [cmake pkg-config perl];
buildInputs = [openssl zlib cyrus_sasl];
propagatedBuildInputs = [libbson snappy];
# -DMONGOC_TEST_USE_CRYPT_SHARED=OFF
# The `mongodl.py` script is causing issues, and you also need to disabled sandboxing for it. However, it is used only to run some tests.
# https://www.mongodb.com/community/forums/t/problem-downloading-crypt-shared-when-installing-the-mongodb-c-driver/189370
cmakeFlags = ["-DCMAKE_BUILD_TYPE=Release" "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF" "-DMONGOC_TEST_USE_CRYPT_SHARED=OFF"];
enableParallelBuilding = true;
@ -22,6 +39,7 @@ stdenv.mkDerivation rec {
homepage = "http://mongoc.org";
license = licenses.asl20;
mainProgram = "mongoc-stat";
maintainers = with maintainers; [archer-65];
platforms = platforms.all;
};
}