1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/os-specific/linux/wpa_supplicant/gui.nix

33 lines
759 B
Nix
Raw Normal View History

{ stdenv, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
stdenv.mkDerivation {
name = "wpa_gui-${wpa_supplicant.version}";
inherit (wpa_supplicant) src;
buildInputs = [ qtbase ];
2017-06-02 16:40:19 +01:00
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
'';
2018-08-30 21:03:07 +01:00
meta = with stdenv.lib; {
description = "Qt-based GUI for wpa_supplicant";
2018-08-30 21:03:07 +01:00
homepage = http://hostap.epitest.fi/wpa_supplicant/;
license = licenses.bsd3;
platforms = platforms.linux;
};
}