qtscrobbler: move to qmake4Hook

This commit is contained in:
Nikolay Amiantov 2016-04-17 02:25:36 +03:00
parent c579c21b04
commit 22a09f1f71

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, withMtp ? true, libmtp, pkgconfig, which, qt4 }:
{ stdenv, lib, fetchurl, withMtp ? true, libmtp, pkgconfig, which, qt4, qmake4Hook }:
stdenv.mkDerivation rec {
name = "qtscrobbler-${version}";
@ -9,18 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "01c8e48f616ed09504833d27d92fd62f455bd645ea2d1cc2a5f4c287d641daba";
};
nativeBuildInputs = lib.optionals withMtp [ pkgconfig which ];
nativeBuildInputs = [ qmake4Hook ] ++ lib.optionals withMtp [ pkgconfig which ];
buildInputs = [ qt4 ] ++ lib.optional withMtp libmtp;
enableParallelBuilding = true;
postPatch = ''
cd src
sed -i "s,/usr/local,$out," common.pri
sed -i -e "s,/usr/local,$out," -e "s,/usr,," common.pri
'';
configurePhase = "qmake";
meta = with lib; {
description = "Qt based last.fm scrobbler";
longDescription = ''