2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "wpa_gui-${wpa_supplicant.version}";
|
|
|
|
|
|
|
|
inherit (wpa_supplicant) src;
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with Inkscape 1.0
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/86930
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://w1.fi/cgit/hostap/patch/?id=0388992905a5c2be5cba9497504eaea346474754";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "05hs74qawa433adripzhycm45g7yvxr6074nd4zcl4gabzp9hd30";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt-based GUI for wpa_supplicant";
|
|
|
|
homepage = "https://hostap.epitest.fi/wpa_supplicant/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|