diff --git a/pkgs/tools/networking/xl2tpd/default.nix b/pkgs/tools/networking/xl2tpd/default.nix index 50b341778eee..4b8f91461d80 100644 --- a/pkgs/tools/networking/xl2tpd/default.nix +++ b/pkgs/tools/networking/xl2tpd/default.nix @@ -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; {