8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
32 lines
769 B
Nix
32 lines
769 B
Nix
{ stdenv, mkDerivation, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
|
|
|
mkDerivation {
|
|
name = "wpa_gui-${wpa_supplicant.version}";
|
|
|
|
inherit (wpa_supplicant) src;
|
|
|
|
buildInputs = [ qtbase ];
|
|
nativeBuildInputs = [ qmake inkscape imagemagick ];
|
|
|
|
prePatch = ''
|
|
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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Qt-based GUI for wpa_supplicant";
|
|
homepage = "https://hostap.epitest.fi/wpa_supplicant/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|