1 { lib, stdenv, fetchFromGitHub, libpcap, ppp }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-Uc3PeTf/ow9p8noPcMLdT6S5dks9igDU6CC9koy+ff4=";
14 buildInputs = [ libpcap ];
17 substituteInPlace l2tp.h --replace /usr/sbin/pppd ${ppp}/sbin/pppd
20 makeFlags = [ "PREFIX=$(out)" ];
23 homepage = src.meta.homepage;
24 description = "Layer 2 Tunnelling Protocol Daemon (RFC 2661)";
25 platforms = platforms.linux;
26 license = licenses.gpl2;
27 maintainers = with maintainers; [ abbradar ];