2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
2012-02-20 14:26:01 +00:00
|
|
|
|
2019-08-07 10:59:35 +01:00
|
|
|
mkDerivation {
|
2012-02-20 14:26:01 +00:00
|
|
|
name = "wpa_gui-${wpa_supplicant.version}";
|
|
|
|
|
|
|
|
inherit (wpa_supplicant) src;
|
|
|
|
|
2020-05-17 07:40:30 +01: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-02 21:44:52 +01:00
|
|
|
sha256 = "05hs74qawa433adripzhycm45g7yvxr6074nd4zcl4gabzp9hd30";
|
2020-05-17 07:40:30 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-05-01 19:55:20 +01:00
|
|
|
buildInputs = [ qtbase ];
|
2017-06-02 16:40:19 +01:00
|
|
|
nativeBuildInputs = [ qmake inkscape imagemagick ];
|
2016-10-30 21:28:08 +00:00
|
|
|
|
2020-05-17 07:40:30 +01:00
|
|
|
postPatch = ''
|
2016-10-30 21:28:08 +00:00
|
|
|
cd wpa_supplicant/wpa_gui-qt4
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make -C icons
|
|
|
|
'';
|
|
|
|
|
2017-05-01 19:55:20 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/{bin,share/applications,share/icons}
|
2016-10-30 21:28:08 +00: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 14:26:01 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-02-20 14:26:01 +00:00
|
|
|
description = "Qt-based GUI for wpa_supplicant";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://hostap.epitest.fi/wpa_supplicant/";
|
2018-08-30 21:03:07 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2012-02-20 14:26:01 +00:00
|
|
|
};
|
|
|
|
}
|