nixpkgs-suyu/pkgs/tools/networking/ppp/default.nix
James Cook 3baf1c0772 Merge remote-tracking branch 'official/master' into ppp_2.4.7_squash
Conflicts:
	pkgs/tools/networking/ppp/default.nix
2015-02-10 09:24:38 -08:00

31 lines
778 B
Nix

{ stdenv, fetchurl, substituteAll, libpcap }:
stdenv.mkDerivation rec {
version = "2.4.7";
name = "ppp-${version}";
src = fetchurl {
url = "mirror://samba/ppp/${name}.tar.gz";
sha256 = "0c7vrjxl52pdwi4ckrvfjr08b31lfpgwf3pp0cqy76a77vfs7q02";
};
patches =
[ ( substituteAll {
src = ./nix-purity.patch;
inherit libpcap;
glibc = stdenv.cc.libc;
})
# Without nonpriv.patch, pppd --version doesn't work when not run as
# root.
./nonpriv.patch
];
buildInputs = [ libpcap ];
meta = {
homepage = https://ppp.samba.org/;
description = "Point-to-point implementation for Linux and Solaris";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.falsifian ];
};
}