add eapol_test to radius
This commit is contained in:
parent
dce2d5483d
commit
1e5722812d
@ -27,10 +27,13 @@ with lib;
|
||||
};
|
||||
|
||||
services.freeradius.enable = true;
|
||||
services.freeradius.debug = true;
|
||||
users.users.radius.group = "radius";
|
||||
users.groups.radius = {};
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 1812 ];
|
||||
|
||||
environment.systemPackages = [ pkgs.eapol_test ];
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
}
|
||||
|
@ -17,4 +17,20 @@ self: super: {
|
||||
t38modem = self.callPackage ./t38modem.nix { };
|
||||
ptlib = self.callPackage ./ptlib.nix { };
|
||||
opal = self.callPackage ./opal.nix { };
|
||||
eapol_test = super.wpa_supplicant.overrideAttrs (old: rec {
|
||||
name = "eapol_test-${old.version}";
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
echo CONFIG_EAPOL_TEST=y >> .config
|
||||
make eapol_test
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D eapol_test $out/bin/eapol_test
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user