Skip to content

Commit

Permalink
nix-bash-completions: init at 0.1
Browse files Browse the repository at this point in the history
Bash completion for almost all nix* commands, including nix-1.12.
  • Loading branch information
hedning committed Nov 11, 2017
1 parent 1806559 commit 33ab98d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgs/shells/nix-bash-completions/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
version = "0.1";
name = "nix-bash-completions-${version}";

src = fetchFromGitHub {
owner = "hedning";
repo = "nix-bash-completions";
rev = "v${version}";
sha256 = "1gb6fmnask1xmjv5j5x0jb505lyp0p4lx2kbibfnb2gi57wapxaz";
};

installPhase = ''
mkdir -p $out/share/bash-completion/completions
cp _* $out/share/bash-completion/completions
'';

meta = {
homepage = http://github.com/hedning/nix-bash-completions;
description = "Bash completions for Nix, NixOS, and NixOps";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ hedning ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5315,6 +5315,8 @@ with pkgs;

bash-completion = callPackage ../shells/bash-completion { };

nix-bash-completions = callPackage ../shells/nix-bash-completions { };

dash = callPackage ../shells/dash { };

es = callPackage ../shells/es { };
Expand Down

0 comments on commit 33ab98d

Please sign in to comment.