nix/pkgs: add eapol-test

This commit is contained in:
Luke Granger-Brown 2021-09-25 12:55:06 +00:00
parent f3c38e3bb2
commit 5d2cc39419
2 changed files with 22 additions and 0 deletions

View file

@ -33,5 +33,6 @@
})); }));
netbox = pkgs.python3Packages.callPackage ./netbox {}; netbox = pkgs.python3Packages.callPackage ./netbox {};
prometheus-bird-exporter-lfty = pkgs.callPackage ./prometheus-bird-exporter-lfty.nix {}; prometheus-bird-exporter-lfty = pkgs.callPackage ./prometheus-bird-exporter-lfty.nix {};
eapol-test = pkgs.callPackage ./eapol-test.nix {};
} // (import ./heptapod-runner.nix args) } // (import ./heptapod-runner.nix args)
// (import ./lightspeed args) // (import ./lightspeed args)

21
nix/pkgs/eapol-test.nix Normal file
View file

@ -0,0 +1,21 @@
{ 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
'';
})