summary refs log tree commit diff
path: root/pkgs/development/libraries/libcommuni
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-04-16 22:59:20 +0300
committerNikolay Amiantov <ab@fmap.me>2016-04-20 18:55:51 +0300
commitac1a531933a25cce11465bc8cd24f2a6c12a4915 (patch)
treef42ef4cf54548c6ad0fafa6e14a082b310a5b00d /pkgs/development/libraries/libcommuni
parent4b5bf1916ad705453b4fbb737d0a1a1dac2aacd4 (diff)
downloadnixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.tar
nixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.tar.gz
nixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.tar.bz2
nixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.tar.lz
nixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.tar.xz
nixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.tar.zst
nixpkgs-ac1a531933a25cce11465bc8cd24f2a6c12a4915.zip
libcommuni: move to qmakeHook
This reverts commit ee1af147f35818f60d3cd6192a4828abdbfdc632.
Diffstat (limited to 'pkgs/development/libraries/libcommuni')
-rw-r--r--pkgs/development/libraries/libcommuni/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/libraries/libcommuni/default.nix b/pkgs/development/libraries/libcommuni/default.nix
index 008311c620c..7b83be7e911 100644
--- a/pkgs/development/libraries/libcommuni/default.nix
+++ b/pkgs/development/libraries/libcommuni/default.nix
@@ -1,4 +1,4 @@
-{ fetchgit, qt5, stdenv
+{ fetchgit, qtbase, qmakeHook, stdenv
 }:
 
 stdenv.mkDerivation rec {
@@ -11,16 +11,16 @@ stdenv.mkDerivation rec {
     sha256 = "15sb7vinaaz1v5nclxpnp5p9a0kmfmlgiqibkipnyydizclidpfx";
   };
 
-  buildInputs = [ qt5.qtbase ];
+  buildInputs = [ qtbase ];
+  nativeBuildInputs = [ qmakeHook ];
 
   enableParallelBuild = true;
 
-  postPatch = ''
-    sed -i -e 's|/bin/pwd|pwd|g' -e 's/which/type -P/' configure
+  configurePhase = ''
+    sed -i -e 's|/bin/pwd|pwd|g' configure
+    ./configure -config release -prefix $out -qmake $QMAKE
   '';
 
-  configureFlags = [ "-config release" ];
-
   meta = with stdenv.lib; {
     description = "A cross-platform IRC framework written with Qt";
     homepage = https://communi.github.io;