forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
768 B
Nix
31 lines
768 B
Nix
{ lib, stdenv, fetchurl, ppp } :
|
|
let
|
|
version = "3.12";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "rp-pppoe-" + version;
|
|
src = fetchurl {
|
|
url = "https://www.roaringpenguin.com/files/download/rp-pppoe-${version}.tar.gz";
|
|
sha256 = "1hl6rjvplapgsyrap8xj46kc9kqwdlm6ya6gp3lv0ihm0c24wy80";
|
|
};
|
|
|
|
buildInputs = [ ppp ];
|
|
|
|
|
|
preConfigure = ''
|
|
cd src
|
|
export PPPD=${ppp}/sbin/pppd
|
|
'';
|
|
postConfigure = ''
|
|
sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
|
|
sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Roaring Penguin Point-to-Point over Ethernet tool";
|
|
platforms = platforms.linux;
|
|
homepage = "https://www.roaringpenguin.com/products/pppoe";
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|