2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "wpa_gui";
|
2022-01-22 01:22:15 +00:00
|
|
|
inherit (wpa_supplicant) version src;
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
nativeBuildInputs = [ qmake inkscape imagemagick ];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
cd wpa_supplicant/wpa_gui-qt4
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make -C icons
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/{bin,share/applications,share/icons}
|
|
|
|
cp -v wpa_gui $out/bin
|
|
|
|
cp -v wpa_gui.desktop $out/share/applications
|
|
|
|
cp -av icons/hicolor $out/share/icons
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Qt-based GUI for wpa_supplicant";
|
|
|
|
homepage = "https://hostap.epitest.fi/wpa_supplicant/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|