From 87853e7753cbbc0d4c3801a398fb1377aedce174 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 3 Aug 2015 00:25:26 +0200 Subject: clipgrab: add 1080p (ffmpeg) support Support is optional (pass ffmpeg = null), but enabled by default. --- pkgs/applications/video/clipgrab/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/applications/video/clipgrab/default.nix b/pkgs/applications/video/clipgrab/default.nix index 7661bfbc5ea4..d4239685f7b1 100644 --- a/pkgs/applications/video/clipgrab/default.nix +++ b/pkgs/applications/video/clipgrab/default.nix @@ -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 -- cgit 1.4.1