1 { lib, stdenv, fetchurl, ppp } :
4 stdenv.mkDerivation rec {
9 url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
10 sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
13 buildInputs = [ ppp ];
17 export PPPD=${ppp}/sbin/pppd
20 configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
23 sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
24 sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
27 makeFlags = [ "AR:=$(AR)" ];
30 description = "Roaring Penguin Point-to-Point over Ethernet tool";
31 platforms = platforms.linux;
32 homepage = "https://www.roaringpenguin.com/products/pppoe";
33 license = licenses.gpl2Plus;