about summary refs log tree commit diff
path: root/pkgs/development/libraries/ldb/default.nix
blob: 41b44c4b73112132cc3561d44a9ed5c52f694fe6 (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
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv, fetchurl, python27, pkgconfig, readline, gettext, tdb, talloc, tevent
, popt, libxslt, docbook_xsl, docbook_xml_dtd_42
, acl ? null, heimdal ? null, libaio ? null, libcap ? null, libgcrypt ? null
, sasl ? null, pam ? null, zlib ? null, openldap ? null
}:

stdenv.mkDerivation rec {
  name = "ldb-1.1.18";

  src = fetchurl {
    url = "http://samba.org/ftp/ldb/${name}.tar.gz";
    sha256 = "1j69sla6shzcm5lmsb79c4igsjnx2ggygqmf9yyim9mkl8z9ksig";
  };

  buildInputs = [
    python27 pkgconfig readline gettext tdb talloc tevent popt
    libxslt docbook_xsl docbook_xml_dtd_42
    acl heimdal libaio libcap libgcrypt sasl pam zlib openldap
  ];

  preConfigure = ''
    sed -i 's,#!/usr/bin/env python,#!${python27}/bin/python,g' buildtools/bin/waf
  '';

  configureFlags = [
    "--bundled-libraries=NONE"
    "--builtin-libraries=replace"
  ];

  meta = with stdenv.lib; {
    description = "a LDAP-like embedded database";
    homepage = http://ldb.samba.org/;
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ wkennington ];
    platforms = platforms.all;
  };
}