depot/nix/pkgs/eapol-test.nix

21 lines
424 B
Nix

{ wpa_supplicant }:
wpa_supplicant.overrideAttrs (old: {
pname = "${old.pname}-eapol_test";
enableParallelBuilding = true;
buildFlags = [ "eapol_test" "preauth_test" ];
preInstall = ":";
postInstall = ":";
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 eapol_test $out/bin/eapol_test
install -Dm755 preauth_test $out/bin/preauth_test
runHook postInstall
'';
})