From 0c641e308fc91dcaa099d5a524999ab32d765031 Mon Sep 17 00:00:00 2001 From: js6pak Date: Mon, 23 Dec 2024 03:51:45 +0100 Subject: [PATCH] gpu-screen-recorder: fix systemd ExecStart --- pkgs/applications/video/gpu-screen-recorder/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/video/gpu-screen-recorder/default.nix b/pkgs/applications/video/gpu-screen-recorder/default.nix index 93603de2d829f..3162b773194f6 100644 --- a/pkgs/applications/video/gpu-screen-recorder/default.nix +++ b/pkgs/applications/video/gpu-screen-recorder/default.nix @@ -68,6 +68,11 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonBool "nvidia_suspend_fix" false) ]; + postPatch = '' + substituteInPlace extra/gpu-screen-recorder.service \ + --replace-fail "ExecStart=gpu-screen-recorder" "ExecStart=$out/bin/gpu-screen-recorder" + ''; + postInstall = '' mkdir $out/bin/.wrapped mv $out/bin/gpu-screen-recorder $out/bin/.wrapped/