mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
95637269f0
libmongoc-1.0.la links to snappy (ld -l) but does not contain full path (ld -L)
27 lines
749 B
Nix
27 lines
749 B
Nix
{ stdenv, fetchzip, perl, pkgconfig, libbson
|
|
, openssl, which, zlib, snappy
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mongoc-${version}";
|
|
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 = [ pkgconfig which perl ];
|
|
buildInputs = [ openssl zlib ];
|
|
propagatedBuildInputs = [ libbson snappy ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "The official C client library for MongoDB";
|
|
homepage = https://github.com/mongodb/mongo-c-driver;
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|