mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
45 lines
901 B
Nix
45 lines
901 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
gzip,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ndppd";
|
|
version = "0.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DanielAdolfsson";
|
|
repo = "ndppd";
|
|
rev = finalAttrs.version;
|
|
sha256 = "sha256-FqOoN7MxewmOxd4SKnOx4W/c3X4Jso/kFdiTzIRqHaw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ gzip ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace Makefile --replace /bin/gzip gzip
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/etc
|
|
cp ndppd.conf-dist $out/etc/ndppd.conf
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) ndppd; };
|
|
|
|
meta = {
|
|
description = "Daemon that proxies NDP (Neighbor Discovery Protocol) messages between interfaces";
|
|
homepage = "https://github.com/DanielAdolfsson/ndppd";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "ndppd";
|
|
};
|
|
})
|