mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
9e4be53221
where a single bin is provided and someone might actually want to run it
28 lines
750 B
Nix
28 lines
750 B
Nix
{ lib, stdenv, fetchzip, perl, pkg-config, libbson
|
|
, openssl, which, zlib, snappy
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mongoc";
|
|
version = "1.8.0";
|
|
|
|
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 ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "The official C client library for MongoDB";
|
|
homepage = "http://mongoc.org";
|
|
license = licenses.asl20;
|
|
mainProgram = "mongoc-stat";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|