Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at github-to-sqlite-beautifulsoup4 42 lines 963 B view raw
1{ lib, stdenv, fetchurl, perl, ppp, iproute2 }: 2 3stdenv.mkDerivation rec { 4 pname = "pptp"; 5 version = "1.10.0"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/pptpclient/${pname}-${version}.tar.gz"; 9 sha256 = "1x2szfp96w7cag2rcvkdqbsl836ja5148zzfhaqp7kl7wjw2sjc2"; 10 }; 11 12 prePatch = '' 13 substituteInPlace Makefile --replace 'install -o root' 'install' 14 ''; 15 16 makeFlags = [ 17 "CC:=$(CC)" 18 "IP=${iproute2}/bin/ip" 19 "PPPD=${ppp}/bin/pppd" 20 "BINDIR=${placeholder "out"}/sbin" 21 "MANDIR=${placeholder "out"}/share/man/man8" 22 "PPPDIR=${placeholder "out"}/etc/ppp" 23 ]; 24 25 strictDeps = true; 26 27 nativeBuildInputs = [ 28 perl # pod2man 29 ]; 30 31 buildInputs = [ 32 perl # in shebang of pptpsetup 33 ]; 34 35 meta = with lib; { 36 description = "PPTP client for Linux"; 37 homepage = "https://pptpclient.sourceforge.net/"; 38 license = licenses.gpl2; 39 platforms = platforms.linux; 40 maintainers = with maintainers; [ nickcao ]; 41 }; 42}