hydra-check: init at 2.0.1

This commit is contained in:
Doron Behar
2024-12-21 17:58:18 +02:00
parent 2307b8f76f
commit b01235edfa
+52
View File
@@ -0,0 +1,52 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
stdenv,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "hydra-check";
version = "2.0.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = "hydra-check";
rev = "v${version}";
hash = "sha256-QdCXToHNymOdlTyQjk9eo7LTznGKB+3pIOgjjaGoTXg=";
};
cargoHash = "sha256-iqFUMok36G1qSUbfY7WD6etY0dtfro3F7mLoOELzxbs=";
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
openssl
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd hydra-check \
--bash <($out/bin/hydra-check --shell-completion bash) \
--fish <($out/bin/hydra-check --shell-completion fish) \
--zsh <($out/bin/hydra-check --shell-completion zsh)
'';
meta = {
description = "Check hydra for the build status of a package";
homepage = "https://github.com/nix-community/hydra-check";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
makefu
artturin
bryango
doronbehar
];
mainProgram = "hydra-check";
};
}