Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 31 lines 876 B view raw
1{lib, stdenv, fetchurl, automake, autoconf, libtool}: 2 3stdenv.mkDerivation rec { 4 pname = "libdnet"; 5 version = "1.12"; 6 7 enableParallelBuilding = true; 8 9 src = fetchurl { 10 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libdnet/libdnet-${version}.tgz"; 11 sha256 = "09mhbr8x66ykhf5581a5zjpplpjxibqzgkkpx689kybwg0wk1cw3"; 12 }; 13 14 nativeBuildInputs = [ automake autoconf ]; 15 buildInputs = [ 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 = "https://github.com/dugsong/libdnet"; 27 license = lib.licenses.bsd3; 28 maintainers = [lib.maintainers.marcweber]; 29 platforms = lib.platforms.linux; 30 }; 31}