lol
1{ stdenv, fetchurl, substituteAll, libpcap }:
2
3stdenv.mkDerivation rec {
4 version = "2.4.7";
5 name = "ppp-${version}";
6
7 src = fetchurl {
8 url = "mirror://samba/ppp/${name}.tar.gz";
9 sha256 = "0c7vrjxl52pdwi4ckrvfjr08b31lfpgwf3pp0cqy76a77vfs7q02";
10 };
11
12 patches =
13 [ ( substituteAll {
14 src = ./nix-purity.patch;
15 inherit libpcap;
16 glibc = stdenv.cc.libc;
17 })
18 # Without nonpriv.patch, pppd --version doesn't work when not run as
19 # root.
20 ./nonpriv.patch
21 ];
22
23 buildInputs = [ libpcap ];
24
25 meta = {
26 homepage = https://ppp.samba.org/;
27 description = "Point-to-point implementation for Linux and Solaris";
28 platforms = stdenv.lib.platforms.linux;
29 maintainers = [ stdenv.lib.maintainers.falsifian ];
30 };
31}