Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1007 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
installShellFiles,
gitUpdater,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "gradle-completion";
version = "1.4.1";
src = fetchFromGitHub {
owner = "gradle";
repo = "gradle-completion";
rev = "v${finalAttrs.version}";
sha256 = "15b0692i3h8h7b95465b2aw9qf5qjmjag5n62347l8yl7zbhv3l2";
};
nativeBuildInputs = [
installShellFiles
];
strictDeps = true;
# we just move two files into $out,
# this shouldn't bother Hydra.
preferLocalBuild = true;
dontBuild = true;
installPhase = ''
runHook preInstall
installShellCompletion --name gradle \
--bash gradle-completion.bash \
--zsh _gradle
runHook postInstall
'';
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = {
description = "Gradle tab completion for bash and zsh";
homepage = "https://github.com/gradle/gradle-completion";
license = lib.licenses.mit;
teams = [ lib.teams.java ];
};
})