Files

50 lines
916 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
automake,
autoconf,
libtool,
pkg-config,
check,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libdnet";
version = "1.18.2";
enableParallelBuilding = true;
src = fetchFromGitHub {
owner = "ofalk";
repo = "libdnet";
tag = "libdnet-${finalAttrs.version}";
hash = "sha256-MPNIkgsBG/ZtsGYTRO258oCYR/RVFN3xav+UizMFeV0=";
};
nativeBuildInputs = [
automake
autoconf
pkg-config
];
buildInputs = [
check
libtool
];
# .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";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.linux;
};
})