clipgrab: add 1080p (ffmpeg) support

Support is optional (pass ffmpeg = null), but enabled by default.
This commit is contained in:
Tobias Geerinckx-Rice 2015-08-03 00:25:26 +02:00
parent dad99aae8e
commit 87853e7753

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeDesktopItem, qt4 }:
{ stdenv, fetchurl, ffmpeg, makeDesktopItem, qt4 }:
let version = "3.5.1"; in
stdenv.mkDerivation rec {
@ -24,7 +24,13 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ nckx ];
};
buildInputs = [ qt4 ];
buildInputs = [ ffmpeg qt4 ];
postPatch = stdenv.lib.optionalString (ffmpeg != null) ''
substituteInPlace converter_ffmpeg.cpp \
--replace '"ffmpeg"' '"${ffmpeg}/bin/ffmpeg"' \
--replace '"ffmpeg ' '"${ffmpeg}/bin/ffmpeg '
'';
configurePhase = ''
qmake clipgrab.pro