Commit cf572e0f authored by Will Fancher's avatar Will Fancher
Browse files

zfs: Fix bash completions with 2.1

parent 9bd0b5ac
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -182,10 +182,11 @@ let
      # Remove tests because they add a runtime dependency on gcc
      rm -rf $out/share/zfs/zfs-tests

      ${optionalString (lib.versionOlder version "2.2") ''
        # 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)
      ''}
    '';

    postFixup = let