From 449e2b4afb3032c8c221f74e87a708c7c24c22a3 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 2 Jan 2015 17:22:06 -0800 Subject: [PATCH] ntdb: Add derivation --- pkgs/development/libraries/ntdb/default.nix | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/ntdb/default.nix diff --git a/pkgs/development/libraries/ntdb/default.nix b/pkgs/development/libraries/ntdb/default.nix new file mode 100644 index 000000000000..0c67a194f58b --- /dev/null +++ b/pkgs/development/libraries/ntdb/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, python, pkgconfig, readline, libxslt +, docbook_xsl, docbook_xml_dtd_42 +}: + +stdenv.mkDerivation rec { + name = "ntdb-1.0"; + + src = fetchurl { + url = "http://samba.org/ftp/tdb/${name}.tar.gz"; + sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1"; + }; + + buildInputs = [ + python pkgconfig readline libxslt docbook_xsl docbook_xml_dtd_42 + ]; + + preConfigure = '' + sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf + ''; + + configureFlags = [ + "--bundled-libraries=NONE" + "--builtin-libraries=replace,ccan" + ]; + + meta = with stdenv.lib; { + description = "The not-so trivial database"; + homepage = http://tdb.samba.org/; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ wkennington ]; + platforms = platforms.all; + }; +}