nixpkgs/pkgs/shells/nix-bash-completions/default.nix
Tor Hedin Brønner f8ca4db1b8 nix-bash-completions: 0.1 -> 0.2
Fix stray print debugging line which stopped the script from working.
2017-11-11 17:06:08 +01:00

27 lines
706 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.2";
name = "nix-bash-completions-${version}";
src = fetchFromGitHub {
owner = "hedning";
repo = "nix-bash-completions";
rev = "v${version}";
sha256 = "0clr3c0zf73pnabab4n5b5x8cd2yilksvvlp4i0rj0cfbr1pzxgr";
};
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 ];
};
}