touchegg: move to qmake4Hook

This commit is contained in:
Nikolay Amiantov 2016-04-17 02:52:46 +03:00
parent 5a4cccd7e7
commit 6adce0a785

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, xorg, xorgserver, qt4, mesa, geis }: { stdenv, fetchurl, xorg, xorgserver, qt4, mesa, geis, qmake4Hook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "touchegg-${version}"; name = "touchegg-${version}";
@ -10,10 +10,11 @@ stdenv.mkDerivation rec {
buildInputs = [ xorgserver mesa xorg.libX11 xorg.libXtst xorg.libXext qt4 geis ]; buildInputs = [ xorgserver mesa xorg.libX11 xorg.libXtst xorg.libXext qt4 geis ];
configurePhase = '' nativeBuildInputs = [ qmake4Hook ];
preConfigure = ''
sed -e "s@/usr/@$out/@g" -i $(find . -name touchegg.pro) sed -e "s@/usr/@$out/@g" -i $(find . -name touchegg.pro)
sed -e "s@/usr/@$out/@g" -i $(find ./src/touchegg/config/ -name Config.cpp) sed -e "s@/usr/@$out/@g" -i $(find ./src/touchegg/config/ -name Config.cpp)
qmake touchegg.pro
''; '';
meta = { meta = {
@ -22,4 +23,4 @@ stdenv.mkDerivation rec {
license = stdenv.lib.licenses.gpl2; license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
}; };
} }