1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "gradle-completion";
7 src = fetchFromGitHub {
9 repo = "gradle-completion";
11 sha256 = "15b0692i3h8h7b95465b2aw9qf5qjmjag5n62347l8yl7zbhv3l2";
16 # we just move two files into $out,
17 # this shouldn't bother Hydra.
18 preferLocalBuild = true;
25 install -Dm0644 ./_gradle $out/share/zsh/site-functions/_gradle
26 install -Dm0644 ./gradle-completion.bash $out/share/bash-completion/completions/gradle
32 description = "Gradle tab completion for bash and zsh";
33 homepage = "https://github.com/gradle/gradle-completion";
34 license = licenses.mit;
35 maintainers = with maintainers; [ ];