diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index d412792c91..701761c299 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -33,5 +33,6 @@ })); netbox = pkgs.python3Packages.callPackage ./netbox {}; prometheus-bird-exporter-lfty = pkgs.callPackage ./prometheus-bird-exporter-lfty.nix {}; + eapol-test = pkgs.callPackage ./eapol-test.nix {}; } // (import ./heptapod-runner.nix args) // (import ./lightspeed args) diff --git a/nix/pkgs/eapol-test.nix b/nix/pkgs/eapol-test.nix new file mode 100644 index 0000000000..2c73964183 --- /dev/null +++ b/nix/pkgs/eapol-test.nix @@ -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 + ''; +})