1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/shells/bash-completion/default.nix
2017-07-19 23:58:53 +02:00

26 lines
714 B
Nix

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