16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
22 repo = "mongo-c-driver";
24 hash = "sha256-81UgJ5GboznaK9omhr3ZMOeOQbIru33Ic42tQAazSzw=";
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [
42 darwin.apple_sdk_11_0.frameworks.Security
46 "-DBUILD_VERSION=${version}"
47 "-DENABLE_UNINSTALL=OFF"
48 "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF"
49 "-DCMAKE_INSTALL_LIBDIR=lib"
52 # remove forbidden reference to $TMPDIR
54 rm -rf src/{libmongoc,libbson}
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;