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