Skip to content

Commit 94c4de1

Browse files
doronbeharpeterhoeg
authored andcommitted
onedrive: small improvements to postInstall
1 parent 5c9a869 commit 94c4de1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pkgs/by-name/on/onedrive/package.nix

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,15 @@ stdenv.mkDerivation (finalAttrs: {
6262
# we could also pass --enable-completions to configure but we would then have to
6363
# figure out the paths manually and pass those along.
6464
postInstall = ''
65-
installShellCompletion --bash --name onedrive contrib/completions/complete.bash
66-
installShellCompletion --fish --name onedrive contrib/completions/complete.fish
67-
installShellCompletion --zsh --name _onedrive contrib/completions/complete.zsh
65+
installShellCompletion --cmd onedrive \
66+
--bash contrib/completions/complete.bash \
67+
--fish contrib/completions/complete.fish \
68+
--zsh contrib/completions/complete.zsh
6869
69-
substituteInPlace $out/lib/systemd/user/onedrive.service --replace-fail "/usr/bin/sleep" "${coreutils}/bin/sleep"
70-
substituteInPlace $out/lib/systemd/system/[email protected] --replace-fail "/usr/bin/sleep" "${coreutils}/bin/sleep"
70+
for s in $out/lib/systemd/user/onedrive.service $out/lib/systemd/system/[email protected]; do
71+
substituteInPlace $s \
72+
--replace-fail "/usr/bin/sleep" "${coreutils}/bin/sleep"
73+
done
7174
'';
7275

7376
passthru = {

0 commit comments

Comments
 (0)