159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
32 lines
803 B
Nix
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;
|
|
};
|
|
|
|
}
|