Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gzip, 6 nixosTests, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "ndppd"; 11 version = "0.2.5"; 12 13 src = fetchFromGitHub { 14 owner = "DanielAdolfsson"; 15 repo = "ndppd"; 16 rev = version; 17 sha256 = "0niri5q9qyyyw5lmjpxk19pv3v4srjvmvyd5k6ks99mvqczjx9c0"; 18 }; 19 20 nativeBuildInputs = [ gzip ]; 21 22 makeFlags = [ 23 "PREFIX=$(out)" 24 ]; 25 26 preConfigure = '' 27 substituteInPlace Makefile --replace /bin/gzip gzip 28 ''; 29 30 postInstall = '' 31 mkdir -p $out/etc 32 cp ndppd.conf-dist $out/etc/ndppd.conf 33 ''; 34 35 passthru.tests = { inherit (nixosTests) ndppd; }; 36 37 meta = with lib; { 38 description = "Daemon that proxies NDP (Neighbor Discovery Protocol) messages between interfaces"; 39 homepage = "https://github.com/DanielAdolfsson/ndppd"; 40 license = licenses.gpl3; 41 platforms = platforms.linux; 42 maintainers = with maintainers; [ fadenb ]; 43 mainProgram = "ndppd"; 44 }; 45}