Unverified Commit 5d4235a8 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

onedrive: patch hardcoded paths (#362646)

parents c77b49d0 d2428f7e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
{
  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 = {