2017-03-15 00:03:41 +00:00
|
|
|
{ fetchFromGitHub, perl, stdenv, cmake }:
|
2015-08-22 22:08:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libbson-${version}";
|
2018-02-27 04:10:09 +00:00
|
|
|
version = "1.9.2";
|
2015-08-22 22:08:04 +00:00
|
|
|
|
2017-03-15 00:03:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
|
|
|
repo = "libbson";
|
|
|
|
rev = version;
|
2018-02-27 04:10:09 +00:00
|
|
|
sha256 = "1dlmcqsb43269z4pa3xmqb1gf1jsji82sk5yyibq0ndhk326iyck";
|
2015-08-22 22:08:04 +00:00
|
|
|
};
|
|
|
|
|
2017-03-15 00:03:41 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ perl ];
|
2015-08-22 22:08:04 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A C Library for parsing, editing, and creating BSON documents";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/mongodb/libbson;
|
2015-08-22 22:08:04 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|