pppd: fix build with libxcrypt

This commit is contained in:
Martin Weinelt 2022-09-27 15:43:01 +02:00
parent be9bc07aa1
commit 43327d2957
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -3,6 +3,7 @@
, fetchFromGitHub
, substituteAll
, libpcap
, libxcrypt
, openssl
, bash
}:
@ -31,6 +32,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libpcap
libxcrypt
openssl
bash
];
@ -48,6 +50,8 @@ stdenv.mkDerivation rec {
"CC=${stdenv.cc.targetPrefix}cc"
];
NIX_LDFLAGS = "-lcrypt";
installPhase = ''
runHook preInstall
mkdir -p $out/bin