Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 49 lines 942 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 automake, 6 autoconf, 7 libtool, 8 pkg-config, 9 check, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "libdnet"; 14 version = "1.18.0"; 15 16 enableParallelBuilding = true; 17 18 src = fetchFromGitHub { 19 owner = "ofalk"; 20 repo = "libdnet"; 21 tag = "libdnet-${finalAttrs.version}"; 22 hash = "sha256-oPlBQB9e8vGJ/rVydMqsZqdInhrpm2sNWkDl9JkkXCI="; 23 }; 24 25 nativeBuildInputs = [ 26 automake 27 autoconf 28 pkg-config 29 ]; 30 buildInputs = [ 31 check 32 libtool 33 ]; 34 35 # .so endings are missing (quick and dirty fix) 36 postInstall = '' 37 for i in $out/lib/*; do 38 ln -s $i $i.so 39 done 40 ''; 41 42 meta = { 43 description = "Provides a simplified, portable interface to several low-level networking routines"; 44 homepage = "https://github.com/dugsong/libdnet"; 45 license = lib.licenses.bsd3; 46 maintainers = [ lib.maintainers.marcweber ]; 47 platforms = lib.platforms.linux; 48 }; 49})