From 7f4ab1cb72cc4779b91384474b6b23e4744033d1 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 15 Apr 2016 04:06:43 +0200 Subject: [PATCH] cutegram: Fix running of {pre,post}Configure Commit 0055c6a introduced a new preConfigure hook that sets the right qmake path. Unfortunately the mkDerivation attributes of cutegram override the whole configurePhase, so this hook isn't run at all. This fixes the build of cutegram and it now successfully compiles on my machine. Signed-off-by: aszlig --- .../instant-messengers/telegram/cutegram/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/instant-messengers/telegram/cutegram/default.nix b/pkgs/applications/networking/instant-messengers/telegram/cutegram/default.nix index 29a0f188516..07bfcf3a03e 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/cutegram/default.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/cutegram/default.nix @@ -24,7 +24,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - configurePhase = "qmake -r PREFIX=$out"; + configurePhase = '' + runHook preConfigure + qmake -r PREFIX=$out + runHook postConfigure + ''; fixupPhase = '' wrapQtProgram $out/bin/cutegram \