{...}: { flake.overlays.rp-pppoe = final: prev: { rp-pppoe = final.lib.flip final.callPackage {} ({ stdenv, fetchFromGitHub, ppp, lib, }: stdenv.mkDerivation { name = "rp-pppoe"; version = "4.0.0-next"; src = fetchFromGitHub { owner = "dfskoll"; repo = "rp-pppoe"; rev = "5748840ac83e7e54fecb1b0034407379c2d6c324"; hash = "sha256-3QXtVu3IfOoJD60h44cqYGPix/2Gl0IKyFTyDwZIc/0="; }; buildInputs = [ppp]; sourceRoot = "source/src"; env.CPATH = lib.concatStringsSep ":" ["${ppp}/include"]; makeFlags = [ "DESTDIR=$(out)" ]; configureFlags = [ "--enable-plugin" "--prefix=/" ]; postInstall = '' test -f $out/etc/ppp/plugins/rp-pppoe.so ''; }); }; }