forked from mirrors/nixpkgs
53fbf7ee9d
A bunch of fixes, and now completes attribute paths when `<nixpkgs>` syntax as file input.
27 lines
706 B
Nix
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 ];
|
|
};
|
|
}
|