about summary refs log tree commit diff
path: root/pkgs/tools/networking/ppp
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-01-31 11:41:14 +0000
committerAlyssa Ross <hi@alyssa.is>2023-01-31 11:41:14 +0000
commited5afe8b9d0ecce300aa55ceda1db7a992ddd9bd (patch)
treed874b791fec10ee9cbba23378b5c7ee94478120a /pkgs/tools/networking/ppp
parent66bb8338fc1de14e3b9c765590fa6ef93cd399ef (diff)
ppp: disable IPX on musl
As noted in the comment, this will be removed entirely in the next
release anyway.
Diffstat (limited to 'pkgs/tools/networking/ppp')
-rw-r--r--pkgs/tools/networking/ppp/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/tools/networking/ppp/default.nix b/pkgs/tools/networking/ppp/default.nix
index be50397bf1d0a..4238391fdaea0 100644
--- a/pkgs/tools/networking/ppp/default.nix
+++ b/pkgs/tools/networking/ppp/default.nix
@@ -53,6 +53,14 @@ stdenv.mkDerivation rec {
 
   NIX_LDFLAGS = "-lcrypt";
 
+  # This can probably be removed if version > 2.4.9, as IPX support
+  # has been removed upstream[1].  Just check whether pkgsMusl.ppp
+  # still builds.
+  #
+  # [1]: https://github.com/ppp-project/ppp/commit/c2881a6b71a36d28a89166e82820dc5e711fd775
+  NIX_CFLAGS_COMPILE =
+    lib.optionalString stdenv.hostPlatform.isMusl "-UIPX_CHANGE";
+
   installPhase = ''
     runHook preInstall
     mkdir -p $out/bin