24 wrapperDir ? "/run/wrappers/bin",
27 stdenv.mkDerivation (finalAttrs: {
28 pname = "gpu-screen-recorder";
32 url = "https://dec05eba.com/snapshot/gpu-screen-recorder.git.${finalAttrs.version}.tar.gz";
33 hash = "sha256-M2bk1WwLlbwspEoPIRMix17ihi72UuRWwiKBdPfim2M=";
62 # Install the upstream systemd unit
63 (lib.mesonBool "systemd" true)
64 # Enable Wayland support
65 (lib.mesonBool "portal" true)
66 # Handle by the module
67 (lib.mesonBool "capabilities" false)
68 (lib.mesonBool "nvidia_suspend_fix" false)
72 mkdir $out/bin/.wrapped
73 mv $out/bin/gpu-screen-recorder $out/bin/.wrapped/
74 makeWrapper "$out/bin/.wrapped/gpu-screen-recorder" "$out/bin/gpu-screen-recorder" \
75 --prefix LD_LIBRARY_PATH : "${
78 addDriverRunpath.driverLink
81 --prefix PATH : "${wrapperDir}" \
82 --suffix PATH : "$out/bin"
86 description = "Screen recorder that has minimal impact on system performance by recording a window using the GPU only";
87 homepage = "https://git.dec05eba.com/gpu-screen-recorder/about/";
88 license = lib.licenses.gpl3Only;
89 mainProgram = "gpu-screen-recorder";
90 maintainers = [ lib.maintainers.babbaj ];
91 platforms = [ "x86_64-linux" ];