nixpkgs/pkgs/shells/bash-completion/default.nix
Ryan Mulligan 2ebf72573e bash-completion: 2.7 -> 2.8
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 2.8 with grep in /nix/store/svgfjl0v59ff90l6h2gzbsplhbk3aqhp-bash-completion-2.8
- directory tree listing: https://gist.github.com/23a9bb8eddc5667ef5a94d69ea7ab340
2018-03-19 22:12:04 -07:00

25 lines
714 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "bash-completion-${version}";
version = "2.8";
src = fetchurl {
url = "https://github.com/scop/bash-completion/releases/download/${version}/${name}.tar.xz";
sha256 = "0kgmflrr1ga9wfk770vmakna3nj46ylb5ky9ipd0v2k9ymq5a7y0";
};
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 ];
};
}