Add ability to use pppd to xl2tpd

This commit is contained in:
Александр Цамутали 2015-04-05 23:14:09 +03:00
parent b783b69326
commit 50855c7e37

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libpcap }:
{ stdenv, fetchFromGitHub, libpcap, ppp }:
let version = "1.3.6";
in stdenv.mkDerivation {
@ -13,6 +13,10 @@ in stdenv.mkDerivation {
buildInputs = [ libpcap ];
postPatch = ''
substituteInPlace l2tp.h --replace /usr/sbin/pppd ${ppp}/sbin/pppd
'';
makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {