1{stdenv, fetchurl, automake, autoconf, libtool}:
2
3stdenv.mkDerivation {
4 name = "libdnet-1.12";
5
6 enableParallelBuilding = true;
7
8 src = fetchurl {
9 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libdnet/libdnet-1.12.tgz";
10 sha256 = "09mhbr8x66ykhf5581a5zjpplpjxibqzgkkpx689kybwg0wk1cw3";
11 };
12
13 buildInputs = [ automake autoconf libtool ];
14
15 # .so endings are missing (quick and dirty fix)
16 postInstall = ''
17 for i in $out/lib/*; do
18 ln -s $i $i.so
19 done
20 '';
21
22 meta = {
23 description = "Provides a simplified, portable interface to several low-level networking routines";
24 homepage = https://github.com/dugsong/libdnet;
25 license = stdenv.lib.licenses.bsd3;
26 maintainers = [stdenv.lib.maintainers.marcweber];
27 platforms = stdenv.lib.platforms.linux;
28 };
29}