dotfiles/overlays/rp-pppoe.nix
magic_rb c234160635
Border router, hela
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-09-04 22:39:43 +02:00

34 lines
875 B
Nix

{...}: {
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
'';
});
};
}