2011-02-11 15:48:30 +01:00
|
|
|
{ fetchurl, stdenv }:
|
2010-05-27 21:33:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "talloc-2.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://samba.org/ftp/talloc/${name}.tar.gz";
|
2014-10-12 16:13:21 +02:00
|
|
|
sha256 = "1d694zyi451a5zr03l5yv0n8yccyr3r8pmzga17xaaaz80khb0av";
|
2010-05-27 21:33:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = "--enable-talloc-compat1 --enable-largefile";
|
2011-02-11 15:48:30 +01:00
|
|
|
|
2011-09-22 01:31:51 +02:00
|
|
|
# https://bugzilla.samba.org/show_bug.cgi?id=7000
|
|
|
|
postConfigure = if stdenv.isDarwin then ''
|
2014-10-16 21:40:25 +02:00
|
|
|
substituteInPlace "Makefile" --replace "SONAMEFLAG = #" "SONAMEFLAG = -Wl,-install_name,"
|
2011-09-22 01:23:12 +02:00
|
|
|
'' else "";
|
|
|
|
|
2010-05-27 21:33:28 +02:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Hierarchical pool based memory allocator with destructors";
|
2010-05-27 21:33:28 +02:00
|
|
|
homepage = http://tdb.samba.org/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2010-05-27 21:33:28 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|