hydra-check: init at 2.0.1
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user