Skip to content

Commit

Permalink
gpu-screen-recorder: fix systemd ExecStart
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Dec 31, 2024
1 parent 88195a9 commit 0c641e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/applications/video/gpu-screen-recorder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 0c641e3

Please sign in to comment.