diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-08-03 00:25:26 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-08-03 01:41:56 +0200 |
commit | 87853e7753cbbc0d4c3801a398fb1377aedce174 (patch) | |
tree | ee89149b3a76938f40f38eecde21606c6f33f915 /pkgs/applications/video | |
parent | dad99aae8e294bfc04a5fc0f973fbc592d7c3342 (diff) |
clipgrab: add 1080p (ffmpeg) support
Support is optional (pass ffmpeg = null), but enabled by default.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/clipgrab/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/video/clipgrab/default.nix b/pkgs/applications/video/clipgrab/default.nix index 7661bfbc5ea4f..d4239685f7b15 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 |