-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09e0074
commit 76df249
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
lib, | ||
rustPlatform, | ||
fetchFromGitHub, | ||
pkg-config, | ||
openssl, | ||
stdenv, | ||
installShellFiles, | ||
}: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
pname = "hydra-check"; | ||
version = "2.0.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "nix-community"; | ||
repo = "hydra-check"; | ||
rev = "v${version}"; | ||
hash = "sha256-4XF3qWQmop8ZMzp25CcMFYNFYLwhwjgtsk8SkikxKSU="; | ||
}; | ||
|
||
cargoHash = "sha256-PmMQMMK9bIyh3vg6AJH6lOEmIlH63iKRhI38rVQ2hKA="; | ||
|
||
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 | ||
doronbehar | ||
]; | ||
mainProgram = "hydra-check"; | ||
}; | ||
} |