1{stdenv, fetchurl, automake, autoconf, libtool}:
2
3stdenv.mkDerivation {
4 name = "libdnet-1.12";
5
6 enableParallelBuilding = true;
7
8 src = fetchurl {
9 url = http://libdnet.googlecode.com/files/libdnet-1.12.tgz;
10 sha1 = "71302be302e84fc19b559e811951b5d600d976f8";
11 };
12
13 configureFlags = [ "--enable-shared" ]; # shared libs required by hyenae
14
15 buildInputs = [ automake autoconf libtool ];
16
17 # .so endings are missing (quick and dirty fix)
18 postInstall = ''
19 for i in $out/lib/*; do
20 ln -s $i $i.so
21 done
22 '';
23
24 meta = {
25 description = "Provides a simplified, portable interface to several low-level networking routines";
26 homepage = http://code.google.com/p/libdnet/;
27 license = stdenv.lib.licenses.bsd3;
28 maintainers = [stdenv.lib.maintainers.marcweber];
29 platforms = stdenv.lib.platforms.linux;
30 };
31}