obs-studio: use addOpenGLRunpath to enable nvenc
This commit is contained in:
parent
ce9ed9baed
commit
c167fbb3ea
@ -1,6 +1,7 @@
|
|||||||
{ config, stdenv
|
{ config, stdenv
|
||||||
, mkDerivation
|
, mkDerivation
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, addOpenGLRunpath
|
||||||
, cmake
|
, cmake
|
||||||
, fdk_aac
|
, fdk_aac
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
@ -46,7 +47,7 @@ in mkDerivation rec {
|
|||||||
sha256 = "11hl3lxvbsm7ackl7qhzgy2x0jsz2dfpi2qxsf8pkp908lrh3b3r";
|
sha256 = "11hl3lxvbsm7ackl7qhzgy2x0jsz2dfpi2qxsf8pkp908lrh3b3r";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ addOpenGLRunpath cmake pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ curl
|
buildInputs = [ curl
|
||||||
fdk_aac
|
fdk_aac
|
||||||
@ -80,6 +81,10 @@ in mkDerivation rec {
|
|||||||
--prefix "LD_LIBRARY_PATH" : "${xorg.libX11.out}/lib:${vlc}/lib"
|
--prefix "LD_LIBRARY_PATH" : "${xorg.libX11.out}/lib:${vlc}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
|
addOpenGLRunpath $out/lib/lib*.so
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Free and open source software for video recording and live streaming";
|
description = "Free and open source software for video recording and live streaming";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user