dotfiles/nixos/configs/gpu-screen-recorder.nix
2024-04-28 11:35:35 +02:00

17 lines
450 B
Nix

{ pkgs, config, ... }:
{
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 : ${config.boot.kernelPackages.nvidia_x11}/lib
'')
];
}