2016-10-30 21:28:08 +00:00
|
|
|
{ stdenv, fetchurl, qt4, qmake4Hook, imagemagick, wpa_supplicant }:
|
2012-02-20 14:26:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "wpa_gui-${wpa_supplicant.version}";
|
|
|
|
|
|
|
|
inherit (wpa_supplicant) src;
|
|
|
|
|
|
|
|
buildInputs = [ qt4 ];
|
2016-10-30 21:28:08 +00:00
|
|
|
nativeBuildInputs = [ qmake4Hook imagemagick ];
|
|
|
|
|
|
|
|
patches = [ ./remove_inkscape.patch ];
|
|
|
|
prePatch = ''
|
|
|
|
cd wpa_supplicant/wpa_gui-qt4
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
lrelease wpa_gui.pro
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make -C icons
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
cp -v wpa_gui $out/bin
|
|
|
|
mkdir -pv $out/share/applications
|
|
|
|
cp -v wpa_gui.desktop $out/share/applications
|
|
|
|
mkdir -pv $out/share/icons
|
|
|
|
cp -av icons/hicolor $out/share/icons
|
|
|
|
'';
|
2012-02-20 14:26:01 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qt-based GUI for wpa_supplicant";
|
2013-11-05 09:46:59 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-02-20 14:26:01 +00:00
|
|
|
};
|
|
|
|
}
|