Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ppp,
|
|
}:
|
|
let
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "rp-pppoe";
|
|
version = "4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dfskoll";
|
|
repo = "rp-pppoe";
|
|
rev = version;
|
|
hash = "sha256-2y26FVxVn8sU9/E2yJeJmbhAeOB0Go7EUPMU9H58H6U=";
|
|
};
|
|
|
|
buildInputs = [ ppp ];
|
|
|
|
preConfigure = ''
|
|
cd src
|
|
export PPPD=${ppp}/sbin/pppd
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-plugin=${ppp}/include"
|
|
]
|
|
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
|
|
|
|
postConfigure = ''
|
|
sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
|
|
sed -i Makefile -e 's@/etc/ppp/plugins@$(out)/lib@'
|
|
sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
|
|
sed -i Makefile -e '/# Directory created by rp-pppoe for kernel-mode plugin/d'
|
|
'';
|
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Roaring Penguin Point-to-Point over Ethernet tool";
|
|
platforms = platforms.linux;
|
|
homepage = "https://github.com/dfskoll/rp-pppoe";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ DictXiong ];
|
|
};
|
|
}
|