nixpkgs-suyu/pkgs/os-specific/linux/wpa_supplicant/gui.nix

37 lines
792 B
Nix

{ stdenv, fetchurl, qt4, qmake4Hook, imagemagick, wpa_supplicant }:
stdenv.mkDerivation {
name = "wpa_gui-${wpa_supplicant.version}";
inherit (wpa_supplicant) src;
buildInputs = [ qt4 ];
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
'';
meta = {
description = "Qt-based GUI for wpa_supplicant";
platforms = stdenv.lib.platforms.linux;
};
}