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