ffmpeg-full: enable basic tests
(cherry picked from commit 4b658eda801752204f8be29a8f8db343d12572dc)
This commit is contained in:
parent
7361aaeb5e
commit
1c8ff5cfc7
@ -443,6 +443,14 @@ stdenv.mkDerivation rec {
|
|||||||
buildFlags = [ "all" ]
|
buildFlags = [ "all" ]
|
||||||
++ optional qtFaststartProgram "tools/qt-faststart"; # Build qt-faststart executable
|
++ optional qtFaststartProgram "tools/qt-faststart"; # Build qt-faststart executable
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkPhase = let
|
||||||
|
ldLibraryPathEnv = if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH";
|
||||||
|
in ''
|
||||||
|
${ldLibraryPathEnv}="libavcodec:libavdevice:libavfilter:libavformat:libavresample:libavutil:libpostproc:libswresample:libswscale:''${${ldLibraryPathEnv}}" \
|
||||||
|
make check -j$NIX_BUILD_CORES
|
||||||
|
'';
|
||||||
|
|
||||||
# Hacky framework patching technique borrowed from the phantomjs2 package
|
# Hacky framework patching technique borrowed from the phantomjs2 package
|
||||||
postInstall = optionalString qtFaststartProgram ''
|
postInstall = optionalString qtFaststartProgram ''
|
||||||
cp -a tools/qt-faststart $out/bin/
|
cp -a tools/qt-faststart $out/bin/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user