Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
ffmpeg-full: setup addOpenGLRunpath
Browse files Browse the repository at this point in the history
  • Loading branch information
elohmeier authored and flokli committed May 16, 2020
1 parent ccd6c7a commit 9663877
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/libraries/ffmpeg-full/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, perl, texinfo, yasm
{ stdenv, addOpenGLRunpath, fetchurl, fetchpatch, pkgconfig, perl, texinfo, yasm
/*
* Licensing options (yes some are listed twice, filters and such are not listed)
*/
Expand Down Expand Up @@ -416,7 +416,7 @@ stdenv.mkDerivation rec {
"--enable-cross-compile"
];

nativeBuildInputs = [ perl pkgconfig texinfo yasm ];
nativeBuildInputs = [ addOpenGLRunpath perl pkgconfig texinfo yasm ];

buildInputs = [
bzip2 celt dav1d fontconfig freetype frei0r fribidi game-music-emu gnutls gsm
Expand Down Expand Up @@ -444,6 +444,13 @@ stdenv.mkDerivation rec {
cp -a tools/qt-faststart $out/bin/
'';

postFixup = optionalString stdenv.isLinux ''
# Set RUNPATH so that libnvcuvid and libcuda in /run/opengl-driver(-32)/lib can be found.
# See the explanation in addOpenGLRunpath.
addOpenGLRunpath $out/lib/libavcodec.so
addOpenGLRunpath $out/lib/libavutil.so
'';

enableParallelBuilding = true;

meta = with stdenv.lib; {
Expand Down

0 comments on commit 9663877

Please sign in to comment.