2017-11-11 07:53:54 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-21 13:05:03 +00:00
|
|
|
version = "0.5";
|
2017-11-11 07:53:54 +00:00
|
|
|
name = "nix-bash-completions-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hedning";
|
|
|
|
repo = "nix-bash-completions";
|
|
|
|
rev = "v${version}";
|
2017-11-21 13:05:03 +00:00
|
|
|
sha256 = "095dbbqssaxf0y85xw73gajif6lzy2aja4scg3plplng3k9zbldz";
|
2017-11-11 07:53:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/bash-completion/completions
|
2017-11-11 16:06:08 +00:00
|
|
|
cp _nix $out/share/bash-completion/completions
|
2017-11-11 07:53:54 +00:00
|
|
|
'';
|
|
|
|
|
2017-11-11 16:06:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-11 07:53:54 +00:00
|
|
|
homepage = http://github.com/hedning/nix-bash-completions;
|
|
|
|
description = "Bash completions for Nix, NixOS, and NixOps";
|
2017-11-11 16:06:08 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ hedning ];
|
2017-11-11 07:53:54 +00:00
|
|
|
};
|
|
|
|
}
|