depot/third_party/nixpkgs/pkgs/development/libraries/libndp/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

32 lines
803 B
Nix

{ lib, stdenv, fetchurl, autoreconfHook, gitUpdater }:
stdenv.mkDerivation rec {
pname = "libndp";
version = "1.9";
src = fetchurl {
url = "http://libndp.org/files/libndp-${version}.tar.gz";
hash = "sha256-qKshTgHcOpthUnaQU5VjfzkSmMhNd2UfDL8LEILdLdQ=";
};
nativeBuildInputs = [ autoreconfHook ];
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
];
passthru.updateScript = gitUpdater {
url = "https://github.com/jpirko/libndp.git";
rev-prefix = "v";
};
meta = with lib; {
homepage = "http://libndp.org/";
description = "Library for Neighbor Discovery Protocol";
mainProgram = "ndptool";
platforms = platforms.linux;
maintainers = [ ];
license = licenses.lgpl21;
};
}