depot/third_party/nixpkgs/pkgs/development/libraries/libdnet/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
839 B
Nix

{stdenv, fetchurl, automake, autoconf, libtool}:
stdenv.mkDerivation {
name = "libdnet-1.12";
enableParallelBuilding = true;
src = fetchurl {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libdnet/libdnet-1.12.tgz";
sha256 = "09mhbr8x66ykhf5581a5zjpplpjxibqzgkkpx689kybwg0wk1cw3";
};
buildInputs = [ automake autoconf 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 = stdenv.lib.licenses.bsd3;
maintainers = [stdenv.lib.maintainers.marcweber];
platforms = stdenv.lib.platforms.linux;
};
}