dotfiles/nix/configs/gpu-screen-recorder.nix
2024-07-31 07:17:52 +02:00

18 lines
495 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
'')
# for scripts
pkgs.xdotool
pkgs.jq
];
}