2017-06-02 17:40:19 +02:00
|
|
|
{ stdenv, fetchurl, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
2012-02-20 15:26:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "wpa_gui-${wpa_supplicant.version}";
|
|
|
|
|
|
|
|
inherit (wpa_supplicant) src;
|
|
|
|
|
2017-05-01 20:55:20 +02:00
|
|
|
buildInputs = [ qtbase ];
|
2017-06-02 17:40:19 +02:00
|
|
|
nativeBuildInputs = [ qmake inkscape imagemagick ];
|
2016-10-30 22:28:08 +01:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
cd wpa_supplicant/wpa_gui-qt4
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make -C icons
|
|
|
|
'';
|
|
|
|
|
2017-05-01 20:55:20 +02:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/{bin,share/applications,share/icons}
|
2016-10-30 22:28:08 +01:00
|
|
|
cp -v wpa_gui $out/bin
|
|
|
|
cp -v wpa_gui.desktop $out/share/applications
|
|
|
|
cp -av icons/hicolor $out/share/icons
|
|
|
|
'';
|
2012-02-20 15:26:01 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qt-based GUI for wpa_supplicant";
|
2013-11-05 10:46:59 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-02-20 15:26:01 +01:00
|
|
|
};
|
|
|
|
}
|