mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
911 B
Nix
36 lines
911 B
Nix
{ lib, stdenv, fetchurl, ppp } :
|
|
let
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "rp-pppoe";
|
|
version = "3.12";
|
|
|
|
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
|
|
'';
|
|
|
|
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "rpppoe_cv_pack_bitfields=rev" ];
|
|
|
|
postConfigure = ''
|
|
sed -i Makefile -e 's@DESTDIR)/etc/ppp@out)/etc/ppp@'
|
|
sed -i Makefile -e 's@PPPOESERVER_PPPD_OPTIONS=@&$(out)@'
|
|
'';
|
|
|
|
makeFlags = [ "AR:=$(AR)" ];
|
|
|
|
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;
|
|
};
|
|
}
|