qtscrobbler: move to qmake4Hook
This commit is contained in:
parent
c579c21b04
commit
22a09f1f71
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "qtscrobbler-${version}";
|
name = "qtscrobbler-${version}";
|
||||||
@ -9,18 +9,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "01c8e48f616ed09504833d27d92fd62f455bd645ea2d1cc2a5f4c287d641daba";
|
sha256 = "01c8e48f616ed09504833d27d92fd62f455bd645ea2d1cc2a5f4c287d641daba";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals withMtp [ pkgconfig which ];
|
nativeBuildInputs = [ qmake4Hook ] ++ lib.optionals withMtp [ pkgconfig which ];
|
||||||
buildInputs = [ qt4 ] ++ lib.optional withMtp libmtp;
|
buildInputs = [ qt4 ] ++ lib.optional withMtp libmtp;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
cd src
|
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; {
|
meta = with lib; {
|
||||||
description = "Qt based last.fm scrobbler";
|
description = "Qt based last.fm scrobbler";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user