2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, automake, autoconf, libtool}:
|
2011-09-24 09:14:21 +00:00
|
|
|
|
2021-11-09 21:14:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libdnet";
|
|
|
|
version = "1.12";
|
2011-09-24 09:14:21 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-09 21:14:04 +00:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libdnet/libdnet-${version}.tgz";
|
2017-10-26 23:44:19 +00:00
|
|
|
sha256 = "09mhbr8x66ykhf5581a5zjpplpjxibqzgkkpx689kybwg0wk1cw3";
|
2011-09-24 09:14:21 +00:00
|
|
|
};
|
|
|
|
|
2022-03-31 01:11:06 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf ];
|
|
|
|
buildInputs = [ libtool ];
|
2015-10-02 07:11:04 +00:00
|
|
|
|
2011-09-24 09:14:21 +00:00
|
|
|
# .so endings are missing (quick and dirty fix)
|
|
|
|
postInstall = ''
|
|
|
|
for i in $out/lib/*; do
|
|
|
|
ln -s $i $i.so
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Provides a simplified, portable interface to several low-level networking routines";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dugsong/libdnet";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [lib.maintainers.marcweber];
|
|
|
|
platforms = lib.platforms.linux;
|
2011-09-24 09:14:21 +00:00
|
|
|
};
|
|
|
|
}
|