wpa_supplicant_gui: Replace inkscape with imagemagick in build process.
This commit is contained in:
parent
4a1f73ab89
commit
19bdc31ed6
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, qt4, qmake4Hook, inkscape, wpa_supplicant }:
|
{ stdenv, fetchurl, qt4, qmake4Hook, imagemagick, wpa_supplicant }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "wpa_gui-${wpa_supplicant.version}";
|
name = "wpa_gui-${wpa_supplicant.version}";
|
||||||
@ -6,33 +6,29 @@ stdenv.mkDerivation {
|
|||||||
inherit (wpa_supplicant) src;
|
inherit (wpa_supplicant) src;
|
||||||
|
|
||||||
buildInputs = [ qt4 ];
|
buildInputs = [ qt4 ];
|
||||||
|
nativeBuildInputs = [ qmake4Hook imagemagick ];
|
||||||
|
|
||||||
nativeBuildInputs = [ inkscape qmake4Hook ];
|
patches = [ ./remove_inkscape.patch ];
|
||||||
|
prePatch = ''
|
||||||
|
cd wpa_supplicant/wpa_gui-qt4
|
||||||
|
'';
|
||||||
|
|
||||||
prePatch = "cd wpa_supplicant/wpa_gui-qt4";
|
preConfigure = ''
|
||||||
|
lrelease wpa_gui.pro
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure =
|
postBuild = ''
|
||||||
''
|
make -C icons
|
||||||
lrelease wpa_gui.pro
|
'';
|
||||||
'';
|
|
||||||
|
|
||||||
# We do not install .xpm icons. First of all, I don't know where they should
|
installPhase = ''
|
||||||
# be install. Second, this allows us to drop imagemagick build-time dependency.
|
mkdir -pv $out/bin
|
||||||
postBuild =
|
cp -v wpa_gui $out/bin
|
||||||
''
|
mkdir -pv $out/share/applications
|
||||||
sed -e '/ICONS.*xpm/d' -i icons/Makefile
|
cp -v wpa_gui.desktop $out/share/applications
|
||||||
make -C icons
|
mkdir -pv $out/share/icons
|
||||||
'';
|
cp -av icons/hicolor $out/share/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 = {
|
meta = {
|
||||||
description = "Qt-based GUI for wpa_supplicant";
|
description = "Qt-based GUI for wpa_supplicant";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user