summary refs log blame commit diff
path: root/pkgs/shells/bash-completion/default.nix
blob: 3ac1ca2172ddf04f6c8515044d311cbc29dfb80a (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
 
                         
                                      
                  
 
                  
                                                                                                
                                                                    

    
                 
 



                                                                      

                                                       
                                                               


                                       

    
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "bash-completion-${version}";
  version = "2.5";

  src = fetchurl {
    url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
    sha256 = "1kwmii1z1ljx5i4z702ynsr8jgrq64bj9w9hl3n2aa2kcl659fdh";
  };

  doCheck = true;

  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
    sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/scop/bash-completion;
    description = "Programmable completion for the bash shell";
    license = licenses.gpl2Plus;
    platforms = platforms.unix;
    maintainers = [ maintainers.peti ];
  };
}