diff --git a/pkgs/tools/networking/ppp/default.nix b/pkgs/tools/networking/ppp/default.nix index 4238391fdaea..09e7578a7187 100644 --- a/pkgs/tools/networking/ppp/default.nix +++ b/pkgs/tools/networking/ppp/default.nix @@ -7,6 +7,7 @@ , openssl , bash , nixosTests +, writeTextDir }: stdenv.mkDerivation rec { @@ -38,6 +39,17 @@ stdenv.mkDerivation rec { bash ]; + # This can be removed when ppp 2.5.0 is released: + # https://github.com/ppp-project/ppp/commit/509f04959ad891d7f981f035ed461d51bd1f74b0 + propagatedBuildInputs = lib.optional stdenv.hostPlatform.isMusl (writeTextDir "include/net/ppp_defs.h" '' + #ifndef _NET_PPP_DEFS_H + #define _NET_PPP_DEFS_H 1 + + #include + + #endif /* net/ppp_defs.h */ + ''); + postPatch = '' for file in $(find -name Makefile.linux); do substituteInPlace "$file" --replace '-m 4550' '-m 550'