clipgrab: add 1080p (ffmpeg) support

Support is optional (pass ffmpeg = null), but enabled by default.

+8 -2
+8 -2
pkgs/applications/video/clipgrab/default.nix
··· 1 - { stdenv, fetchurl, makeDesktopItem, qt4 }: 2 3 let version = "3.5.1"; in 4 stdenv.mkDerivation rec { ··· 24 maintainers = with maintainers; [ nckx ]; 25 }; 26 27 - buildInputs = [ qt4 ]; 28 29 configurePhase = '' 30 qmake clipgrab.pro
··· 1 + { stdenv, fetchurl, ffmpeg, makeDesktopItem, qt4 }: 2 3 let version = "3.5.1"; in 4 stdenv.mkDerivation rec { ··· 24 maintainers = with maintainers; [ nckx ]; 25 }; 26 27 + buildInputs = [ ffmpeg qt4 ]; 28 + 29 + postPatch = stdenv.lib.optionalString (ffmpeg != null) '' 30 + substituteInPlace converter_ffmpeg.cpp \ 31 + --replace '"ffmpeg"' '"${ffmpeg}/bin/ffmpeg"' \ 32 + --replace '"ffmpeg ' '"${ffmpeg}/bin/ffmpeg ' 33 + ''; 34 35 configurePhase = '' 36 qmake clipgrab.pro