libmongocrypt: init at 1.7.4

K900 88ae8974 1f3c4bf6

+46
+44
pkgs/development/libraries/libmongocrypt/default.nix
··· 1 + { stdenv, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config, mongoc, openssl }: 2 + stdenv.mkDerivation rec { 3 + pname = "libmongocrypt"; 4 + version = "1.7.4"; 5 + 6 + src = fetchFromGitHub { 7 + owner = "mongodb"; 8 + repo = pname; 9 + rev = version; 10 + hash = "sha256-I4KG2BHAovin9EaF8lNzJzucARvi0Qptz5Y9gTt3WkE="; 11 + }; 12 + 13 + patches = [ 14 + # fix pkg-config files 15 + # submitted upstream: https://github.com/mongodb/libmongocrypt/pull/634 16 + (fetchpatch { 17 + url = "https://github.com/mongodb/libmongocrypt/commit/5514cf0a366c4d0dc1b0f2a62201f0f1161054da.diff"; 18 + hash = "sha256-eMSn6MRnc3yKfU2u/Bg3juWiupDzY1DUGi1/HSRftIs="; 19 + }) 20 + ]; 21 + 22 + nativeBuildInputs = [ cmake pkg-config ]; 23 + buildInputs = [ mongoc openssl ]; 24 + 25 + cmakeFlags = [ 26 + # all three of these are required to use system libbson 27 + "-DUSE_SHARED_LIBBSON=ON" 28 + "-DMONGOCRYPT_MONGOC_DIR=USE-SYSTEM" 29 + "-DENABLE_ONLINE_TESTS=OFF" 30 + 31 + # this pulls in a library we don't have 32 + "-DMONGOCRYPT_ENABLE_DECIMAL128=OFF" 33 + 34 + # this avoids a dependency on Python 35 + "-DBUILD_VERSION=${version}" 36 + ]; 37 + 38 + meta = with lib; { 39 + description = "Required C library for client-side and queryable encryption in MongoDB"; 40 + homepage = "https://github.com/mongodb/libmongocrypt"; 41 + license = licenses.asl20; 42 + platforms = platforms.unix; 43 + }; 44 + }
+2
pkgs/top-level/all-packages.nix
··· 9644 9644 9645 9645 libmongo-client = callPackage ../development/libraries/libmongo-client { }; 9646 9646 9647 + libmongocrypt = callPackage ../development/libraries/libmongocrypt { }; 9648 + 9647 9649 libmesode = callPackage ../development/libraries/libmesode { }; 9648 9650 9649 9651 libmsym = callPackage ../development/libraries/science/chemistry/libmsym { };