clipgrab: add 1080p (ffmpeg) support
Support is optional (pass ffmpeg = null), but enabled by default.
This commit is contained in:
parent
dad99aae8e
commit
87853e7753
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, makeDesktopItem, qt4 }:
|
{ stdenv, fetchurl, ffmpeg, makeDesktopItem, qt4 }:
|
||||||
|
|
||||||
let version = "3.5.1"; in
|
let version = "3.5.1"; in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -24,7 +24,13 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ nckx ];
|
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 = ''
|
configurePhase = ''
|
||||||
qmake clipgrab.pro
|
qmake clipgrab.pro
|
||||||
|
Loading…
x
Reference in New Issue
Block a user