From fc51dc2a83592a68ee51c4477fb7862d248a77b1 Mon Sep 17 00:00:00 2001 From: ben9986 <38633150+Ben9986@users.noreply.github.com> Date: Sat, 7 Dec 2024 01:43:54 +0000 Subject: [PATCH] onedrive: patch missed paths (cherry picked from commit d2428f7e442e2c1d8b2b83f83a823f07c5558dcd) --- pkgs/by-name/on/onedrive/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/on/onedrive/package.nix b/pkgs/by-name/on/onedrive/package.nix index ae59c1c10ac95..51874c89c7298 100644 --- a/pkgs/by-name/on/onedrive/package.nix +++ b/pkgs/by-name/on/onedrive/package.nix @@ -1,6 +1,7 @@ { lib, autoreconfHook, + coreutils, curl, fetchFromGitHub, installShellFiles, @@ -57,6 +58,9 @@ stdenv.mkDerivation (finalAttrs: { installShellCompletion --bash --name onedrive contrib/completions/complete.bash installShellCompletion --fish --name onedrive contrib/completions/complete.fish installShellCompletion --zsh --name _onedrive contrib/completions/complete.zsh + + substituteInPlace $out/lib/systemd/user/onedrive.service --replace-fail "/usr/bin/sleep" "${coreutils}/bin/sleep" + substituteInPlace $out/lib/systemd/system/onedrive@.service --replace-fail "/usr/bin/sleep" "${coreutils}/bin/sleep" ''; passthru = {