cutegram: move to qmakeHook

This reverts commit 7f4ab1cb72.
This commit is contained in:
Nikolay Amiantov 2016-04-16 22:59:20 +03:00
parent 46cf871c3d
commit 5faed29fa8

View File

@ -3,7 +3,7 @@
, qtimageformats, qtgraphicaleffects , qtimageformats, qtgraphicaleffects
, telegram-qml, libqtelegram-aseman-edition , telegram-qml, libqtelegram-aseman-edition
, gst_all_1 , gst_all_1
, makeQtWrapper }: , makeQtWrapper, qmakeHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "cutegram-${meta.version}"; name = "cutegram-${meta.version}";
@ -20,16 +20,10 @@ stdenv.mkDerivation rec {
telegram-qml libqtelegram-aseman-edition telegram-qml libqtelegram-aseman-edition
] ++ (with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly ]); ] ++ (with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly ]);
nativeBuildInputs = [ makeQtWrapper ]; nativeBuildInputs = [ makeQtWrapper qmakeHook ];
enableParallelBuilding = true; enableParallelBuilding = true;
configurePhase = ''
runHook preConfigure
qmake -r PREFIX=$out
runHook postConfigure
'';
fixupPhase = '' fixupPhase = ''
wrapQtProgram $out/bin/cutegram \ wrapQtProgram $out/bin/cutegram \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"