nixpkgs/pkgs/os-specific/linux/wpa_supplicant/gui.nix
Jörg Thalheim 95f6bece88
wpa_supplicant: upgrade to qt5
also inkscape removal patch, as it introduced a bug: #25320
fixes #25320 #25325
2017-05-01 21:23:22 +02:00

30 lines
685 B
Nix

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