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}";
|
2017-03-15 00:03:41 +00:00
|
|
|
version = "1.6.1";
|
2015-08-22 22:08:04 +00:00
|
|
|
|
2017-03-15 00:03:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
|
|
|
repo = "libbson";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1ilxbv4yjgf0vfzaa8lzn40hv5x1737ny2g2q1wmm8bl39m0viiw";
|
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";
|
|
|
|
homepage = "https://github.com/mongodb/libbson";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|