Gpu-screen-recorder: Difference between revisions
Add link to ShadowPlay |
Improve LD_LIBRARY_PATH wrapper for gpu-screen-recorder |
||
| Line 30: | Line 30: | ||
# Make sure your [[Nvidia|drivers]] are installed. | # Make sure your [[Nvidia|drivers]] are installed. | ||
# Install the missing the NVENC patch for your card. [https://github.com/icewind1991/nvidia-patch-nixos nvidia-patch] is a great overlay which you can use | # Install the missing the NVENC patch for your card. [https://github.com/icewind1991/nvidia-patch-nixos nvidia-patch] is a great overlay which you can use | ||
# Override the package build inputs and add the library to the wrapper.<syntaxhighlight lang="nix"> | # Override the package build inputs and add the library to the wrapper. | ||
(gpu-screen-recorder | |||
<syntaxhighlight lang="nix"> | |||
{ | |||
environment.systemPackages = [ | |||
(pkgs.runCommand "gpu-screen-recorder" { | |||
nativeBuildInputs = [ pkgs.makeWrapper ]; | |||
} '' | |||
mkdir -p $out/bin | |||
makeWrapper ${pkgs.gpu-screen-recorder}/bin/gpu-screen-recorder $out/bin/gpu-screen-recorder \ | |||
--prefix LD_LIBRARY_PATH : ${pkgs.libglvnd}/lib \ | --prefix LD_LIBRARY_PATH : ${pkgs.libglvnd}/lib \ | ||
--prefix LD_LIBRARY_PATH : ${ | --prefix LD_LIBRARY_PATH : ${config.boot.kernelPackages.nvidia_x11}/lib | ||
'') | |||
]; | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||