summary refs log tree commit diff
path: root/pkgs/development/libraries/libbson/default.nix
blob: 5bd6b11ac7afac8d4bb0d4f77b7e9a02ede43fe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ fetchFromGitHub, perl, stdenv, cmake }:

stdenv.mkDerivation rec {
  pname = "libbson";
  version = "1.9.5";

  src = fetchFromGitHub {
    owner = "mongodb";
    repo = "libbson";
    rev = version;
    sha256 = "16rmzxhhmbvhp4q6qac5j9c74z2pcg5raag5w16mynzikdd2l05b";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ perl ];

  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;
  };
}