Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / zsh / gradle-completion / default.nix
blobfa40db3603b90fc3d283c97eaeb6e366425498b3
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "gradle-completion";
5   version = "1.4.1";
7   src = fetchFromGitHub {
8     owner = "gradle";
9     repo = "gradle-completion";
10     rev = "v${version}";
11     sha256 = "15b0692i3h8h7b95465b2aw9qf5qjmjag5n62347l8yl7zbhv3l2";
12   };
14   strictDeps = true;
16   # we just move two files into $out,
17   # this shouldn't bother Hydra.
18   preferLocalBuild = true;
20   dontBuild = true;
21   installPhase = ''
22     runHook preInstall
24     mkdir -p $out
25     install -Dm0644 ./_gradle $out/share/zsh/site-functions/_gradle
26     install -Dm0644 ./gradle-completion.bash $out/share/bash-completion/completions/gradle
28     runHook postInstall
29   '';
31   meta = with lib; {
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; [ ];
36   };