clipgrab: move to qmake4Hook
This commit is contained in:
parent
2816ad29e5
commit
3656842478
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, makeDesktopItem, ffmpeg, qt4 }:
|
{ stdenv, fetchurl, makeDesktopItem, ffmpeg, qt4, qmake4Hook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "clipgrab-${version}";
|
name = "clipgrab-${version}";
|
||||||
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ffmpeg qt4 ];
|
buildInputs = [ ffmpeg qt4 ];
|
||||||
|
nativeBuildInputs = [ qmake4Hook ];
|
||||||
|
|
||||||
postPatch = stdenv.lib.optionalString (ffmpeg != null) ''
|
postPatch = stdenv.lib.optionalString (ffmpeg != null) ''
|
||||||
substituteInPlace converter_ffmpeg.cpp \
|
substituteInPlace converter_ffmpeg.cpp \
|
||||||
@ -18,9 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
--replace '"ffmpeg ' '"${ffmpeg.bin}/bin/ffmpeg '
|
--replace '"ffmpeg ' '"${ffmpeg.bin}/bin/ffmpeg '
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
qmakeFlags = [ "clipgrab.pro" ];
|
||||||
qmake clipgrab.pro
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user