15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
21 repo = "mongo-c-driver";
23 hash = "sha256-nhAbe85onBgWDu20yxR9xapOpca28ayP7peXf4H6i+Y=";
41 "-DBUILD_VERSION=${version}"
42 "-DENABLE_UNINSTALL=OFF"
43 "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF"
44 "-DCMAKE_INSTALL_LIBDIR=lib"
47 # remove forbidden reference to $TMPDIR
49 rm -rf src/{libmongoc,libbson}
53 description = "Official C client library for MongoDB";
54 homepage = "http://mongoc.org";
55 license = licenses.asl20;
56 mainProgram = "mongoc-stat";
57 maintainers = with maintainers; [ archer-65 ];
58 platforms = platforms.all;