9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 hash = "sha256-2y26FVxVn8sU9/E2yJeJmbhAeOB0Go7EUPMU9H58H6U=";
20 buildInputs = [ ppp ];
24 export PPPD=${ppp}/sbin/pppd
28 "--enable-plugin=${ppp}/include"
29 ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
32 sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
33 sed -i Makefile -e 's@/etc/ppp/plugins@$(out)/lib@'
34 sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
35 sed -i Makefile -e '/# Directory created by rp-pppoe for kernel-mode plugin/d'
38 makeFlags = [ "AR:=$(AR)" ];
41 description = "Roaring Penguin Point-to-Point over Ethernet tool";
42 platforms = platforms.linux;
43 homepage = "https://github.com/dfskoll/rp-pppoe";
44 license = licenses.gpl2Plus;
45 maintainers = with maintainers; [ DictXiong ];