summary refs log tree commit diff
path: root/pkgs/tools/filesystems/yandex-disk
diff options
context:
space:
mode:
authorJonas Chevalier <zimbatm@zimbatm.com>2020-11-12 22:22:18 +0100
committerGitHub <noreply@github.com>2020-11-12 21:22:18 +0000
commita7cb88c3def629f4d950d819254c27c1b328b2ac (patch)
treed3dd7ffff60eb64d78eea70761f60830245e979c /pkgs/tools/filesystems/yandex-disk
parent3fceafce1eaa82c36a21153efbf7c1ee87af7b0e (diff)
downloadnixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.tar
nixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.tar.gz
nixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.tar.bz2
nixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.tar.lz
nixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.tar.xz
nixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.tar.zst
nixpkgs-a7cb88c3def629f4d950d819254c27c1b328b2ac.zip
tree-wide: unify Bash completions outputs (#103421)
Use $out/share/bash-completion/completions to store the Bash completions
Diffstat (limited to 'pkgs/tools/filesystems/yandex-disk')
-rw-r--r--pkgs/tools/filesystems/yandex-disk/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/filesystems/yandex-disk/default.nix b/pkgs/tools/filesystems/yandex-disk/default.nix
index 334aa6ad9c6..152fd1d7a71 100644
--- a/pkgs/tools/filesystems/yandex-disk/default.nix
+++ b/pkgs/tools/filesystems/yandex-disk/default.nix
@@ -32,12 +32,13 @@ stdenv.mkDerivation rec {
     cd unpacked
     ${rpmextract}/bin/rpmextract $src
 
+    mkdir -p $out/share/bash-completion/completions
     cp -r -t $out/bin usr/bin/*
     cp -r -t $out/share usr/share/*
-    cp -r -t $out/etc etc/*
+    cp -r -t $out/share/bash-completion/completions etc/bash_completion.d/*
 
     sed -i 's@have@${which}/bin/which >/dev/null 2>\&1@' \
-      $out/etc/bash_completion.d/yandex-disk-completion.bash
+      $out/share/bash-completion/completions/yandex-disk-completion.bash
 
     ${patchelf}/bin/patchelf \
       --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \