liminix

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

default.nix (732B)


      1 {
      2   fetchFromGitHub,
      3   stdenv,
      4   autoreconfHook,
      5   substituteAll,
      6 }:
      7 stdenv.mkDerivation {
      8   pname = "ppp";
      9   version = "2.5.0";
     10   nativeBuildInputs = [ autoreconfHook ];
     11 
     12   src = fetchFromGitHub {
     13     repo = "ppp";
     14     owner = "ppp-project";
     15     rev = "ppp-2.5.0";
     16     hash = "sha256-J7udiLiJiJ1PzNxD+XYAUPXZ+ABGXt2U3hSFUWJXe94=";
     17   };
     18 
     19   configureFlags = [
     20     "--disable-eaptls"
     21     "--disable-peap"
     22     "--disable-openssl-engine"
     23     "--without-openssl"
     24     "--with-runtime-dir=/run/"
     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 }