dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / development / libraries / mongoc / default.nix
blob538e5201fd13eeb25711fc4f88d44054fdfa699c
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   pkg-config,
7   openssl,
8   zlib,
9   zstd,
10   icu,
11   cyrus_sasl,
12   snappy,
13   darwin,
16 stdenv.mkDerivation rec {
17   pname = "mongoc";
18   version = "1.29.1";
20   src = fetchFromGitHub {
21     owner = "mongodb";
22     repo = "mongo-c-driver";
23     tag = version;
24     hash = "sha256-81UgJ5GboznaK9omhr3ZMOeOQbIru33Ic42tQAazSzw=";
25   };
27   nativeBuildInputs = [
28     cmake
29     pkg-config
30   ];
32   buildInputs =
33     [
34       openssl
35       zlib
36       zstd
37       icu
38       cyrus_sasl
39       snappy
40     ]
41     ++ lib.optionals stdenv.hostPlatform.isDarwin [
42       darwin.apple_sdk_11_0.frameworks.Security
43     ];
45   cmakeFlags = [
46     "-DBUILD_VERSION=${version}"
47     "-DENABLE_UNINSTALL=OFF"
48     "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF"
49     "-DCMAKE_INSTALL_LIBDIR=lib"
50   ];
52   # remove forbidden reference to $TMPDIR
53   preFixup = ''
54     rm -rf src/{libmongoc,libbson}
55   '';
57   meta = with lib; {
58     description = "Official C client library for MongoDB";
59     homepage = "http://mongoc.org";
60     license = licenses.asl20;
61     mainProgram = "mongoc-stat";
62     maintainers = with maintainers; [ archer-65 ];
63     platforms = platforms.all;
64   };