2018-07-05 00:34:28 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gradle-completion";
|
2019-03-02 12:02:50 +01:00
|
|
|
version = "1.4.1";
|
2018-07-05 00:34:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gradle";
|
|
|
|
repo = "gradle-completion";
|
|
|
|
rev = "v${version}";
|
2019-03-02 12:02:50 +01:00
|
|
|
sha256 = "15b0692i3h8h7b95465b2aw9qf5qjmjag5n62347l8yl7zbhv3l2";
|
2018-07-05 00:34:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# we just move two files into $out,
|
|
|
|
# this shouldn't bother Hydra.
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
install -Dm0644 ./_gradle $out/share/zsh/site-functions/_gradle
|
|
|
|
install -Dm0644 ./gradle-completion.bash $out/share/bash-completion/completions/gradle
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Gradle tab completion for bash and zsh";
|
|
|
|
homepage = https://github.com/gradle/gradle-completion;
|
|
|
|
license = licenses.mit;
|
2019-12-26 15:13:48 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-07-05 00:34:28 +02:00
|
|
|
};
|
|
|
|
}
|