mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
zfs: Fix bash completions with 2.1
This commit is contained in:
@@ -182,10 +182,11 @@ let
|
||||
# Remove tests because they add a runtime dependency on gcc
|
||||
rm -rf $out/share/zfs/zfs-tests
|
||||
|
||||
# Add Bash completions.
|
||||
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
|
||||
'' + optionalString (lib.versionOlder version "2.2.6") ''
|
||||
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
|
||||
${optionalString (lib.versionOlder version "2.2") ''
|
||||
# Add Bash completions.
|
||||
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
|
||||
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
|
||||
''}
|
||||
'';
|
||||
|
||||
postFixup = let
|
||||
|
||||
Reference in New Issue
Block a user