3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/shells/nix-bash-completions/default.nix
Tor Hedin Brønner 53fbf7ee9d nix-bash-completions: 0.2 -> 0.4
A bunch of fixes, and now completes attribute paths when `<nixpkgs>`
syntax as file input.
2017-11-13 11:23:12 +01:00

27 lines
706 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.4";
name = "nix-bash-completions-${version}";
src = fetchFromGitHub {
owner = "hedning";
repo = "nix-bash-completions";
rev = "v${version}";
sha256 = "08gl9xnk738p180hpn3l7ggrz5zlky4pam7v74kb0gavjxm4fa2f";
};
installPhase = ''
mkdir -p $out/share/bash-completion/completions
cp _nix $out/share/bash-completion/completions
'';
meta = with stdenv.lib; {
homepage = http://github.com/hedning/nix-bash-completions;
description = "Bash completions for Nix, NixOS, and NixOps";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ hedning ];
};
}