2017-03-15 01:03:41 +01:00
|
|
|
{ fetchFromGitHub, perl, stdenv, cmake }:
|
2015-08-23 00:08:04 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libbson-${version}";
|
2017-03-15 01:03:41 +01:00
|
|
|
version = "1.6.1";
|
2015-08-23 00:08:04 +02:00
|
|
|
|
2017-03-15 01:03:41 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
|
|
|
repo = "libbson";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1ilxbv4yjgf0vfzaa8lzn40hv5x1737ny2g2q1wmm8bl39m0viiw";
|
2015-08-23 00:08:04 +02:00
|
|
|
};
|
|
|
|
|
2017-03-15 01:03:41 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ perl ];
|
2015-08-23 00:08:04 +02: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;
|
|
|
|
};
|
|
|
|
}
|