default.nix (763B)
1 { 2 fetchFromGitHub, 3 gcc13Stdenv, 4 autoreconfHook, 5 substituteAll, 6 }: 7 let stdenv = gcc13Stdenv; in 8 stdenv.mkDerivation { 9 pname = "ppp"; 10 version = "2.5.2"; 11 nativeBuildInputs = [ autoreconfHook ]; 12 13 src = fetchFromGitHub { 14 repo = "ppp"; 15 owner = "ppp-project"; 16 rev = "v2.5.2"; 17 hash = "sha256-NV8U0F8IhHXn0YuVbfFr992ATQZaXA16bb5hBIwm9Gs="; 18 }; 19 20 configureFlags = [ 21 "--disable-eaptls" 22 "--disable-peap" 23 "--disable-openssl-engine" 24 "--without-openssl" 25 "--with-runtime-dir=/run/" 26 ]; 27 28 postPatch = '' 29 sed -i.bak pppd/crypto_ms.c -e '/#include <openssl\/evp.h>/d' 30 sed -i.bak pppd/ppp-sha1.c -e 's/u_int32_t/uint32_t/g' -e '1i#include <stdint.h>' 31 ''; 32 33 outputs = [ 34 "bin" 35 "out" 36 "man" 37 "dev" 38 ]; 39 }