mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 03:37:56 +00:00
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user