communi: move to qmakeHook
This reverts commit 0fefa9939e5db2057d9e6418cb68946ca2a12721.
This commit is contained in:
parent
837c573f27
commit
6b6768f455
@ -1,4 +1,4 @@
|
|||||||
{ fetchgit, libcommuni, makeQtWrapper, qt5, stdenv }:
|
{ fetchgit, libcommuni, makeQtWrapper, qtbase, qmakeHook, stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "communi-${version}";
|
name = "communi-${version}";
|
||||||
@ -10,23 +10,22 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0gk6gck09zb44qfsal7bs4ln2vl9s9x3vfxh7jvfc7mmf7l3sspd";
|
sha256 = "0gk6gck09zb44qfsal7bs4ln2vl9s9x3vfxh7jvfc7mmf7l3sspd";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeQtWrapper ];
|
nativeBuildInputs = [ makeQtWrapper qmakeHook ];
|
||||||
|
|
||||||
buildInputs = [ libcommuni qt5.qtbase ];
|
buildInputs = [ libcommuni qtbase ];
|
||||||
|
|
||||||
enableParallelBuild = true;
|
enableParallelBuild = true;
|
||||||
|
|
||||||
configurePhase = ''
|
preConfigure = ''
|
||||||
runHook preConfigure
|
|
||||||
export QMAKEFEATURES=${libcommuni}/features
|
export QMAKEFEATURES=${libcommuni}/features
|
||||||
qmake -r \
|
qmakeFlags="$qmakeFlags \
|
||||||
COMMUNI_INSTALL_PREFIX=$out \
|
COMMUNI_INSTALL_PREFIX=$out \
|
||||||
COMMUNI_INSTALL_BINS=$out/bin \
|
COMMUNI_INSTALL_BINS=$out/bin \
|
||||||
COMMUNI_INSTALL_PLUGINS=$out/lib/communi/plugins \
|
COMMUNI_INSTALL_PLUGINS=$out/lib/communi/plugins \
|
||||||
COMMUNI_INSTALL_ICONS=$out/share/icons/hicolor \
|
COMMUNI_INSTALL_ICONS=$out/share/icons/hicolor \
|
||||||
COMMUNI_INSTALL_DESKTOP=$out/share/applications \
|
COMMUNI_INSTALL_DESKTOP=$out/share/applications \
|
||||||
COMMUNI_INSTALL_THEMES=$out/share/communi/themes
|
COMMUNI_INSTALL_THEMES=$out/share/communi/themes
|
||||||
runHook postConfigure
|
"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user