mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 11:36:16 +01:00
34 lines
875 B
Nix
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
|
||
|
'';
|
||
|
});
|
||
|
};
|
||
|
}
|