2011-02-11 14:48:30 +00:00
|
|
|
{ fetchurl, stdenv }:
|
2010-05-27 19:33:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "talloc-2.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://samba.org/ftp/talloc/${name}.tar.gz";
|
|
|
|
md5 = "c6e736540145ca58cb3dcb42f91cf57b";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--enable-talloc-compat1 --enable-largefile";
|
2011-02-11 14:48:30 +00:00
|
|
|
|
2011-09-21 23:31:51 +00:00
|
|
|
# https://bugzilla.samba.org/show_bug.cgi?id=7000
|
|
|
|
postConfigure = if stdenv.isDarwin then ''
|
2011-09-21 23:23:12 +00:00
|
|
|
substituteInPlace "Makefile" --replace "SONAMEFLAG = #" "SONAMEFLAG = -install_name"
|
|
|
|
'' else "";
|
|
|
|
|
2010-05-27 19:33:28 +00:00
|
|
|
meta = {
|
|
|
|
description = "talloc is a hierarchical pool based memory allocator with destructors";
|
|
|
|
homepage = http://tdb.samba.org/;
|
|
|
|
license = "GPLv3";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|