about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/lmdbxx/default.nix
blob: c8b4dec313be722424f9ea037150ce6507c4723c (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
24
25
{ lib, stdenv
, fetchFromGitHub
, lmdb }:

stdenv.mkDerivation (finalAttrs: {
  pname = "lmdbxx";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "hoytech";
    repo = "lmdbxx";
    rev = finalAttrs.version;
    sha256 = "sha256-7CxQZdgHVvmof6wVR9Mzic6tg89XJT3Z1ICGRs7PZYo=";
  };

  buildInputs = [ lmdb ];
  makeFlags = [ "PREFIX=$(out)" ];

  meta = {
    homepage = "https://github.com/hoytech/lmdbxx#readme";
    description = "C++11 wrapper for the LMDB embedded B+ tree database library";
    license = lib.licenses.unlicense;
    maintainers = with lib.maintainers; [ fgaz ];
  };
})