liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

default.nix (741B)


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