Skip to content

Commit

Permalink
hydra-check: init at 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Dec 21, 2024
1 parent 2307b8f commit b01235e
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/by-name/hy/hydra-check/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit b01235e

Please sign in to comment.