depot/third_party/nixpkgs/pkgs/development/tools/misc/hydra-cli/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

49 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
stdenv,
darwin,
testers,
hydra-cli,
}:
rustPlatform.buildRustPackage rec {
pname = "hydra-cli";
version = "0.3.0-unstable-2023-12-20";
src = fetchFromGitHub {
owner = "nlewo";
repo = "hydra-cli";
rev = "dbb6eaa45c362969382bae7142085be769fa14e6";
hash = "sha256-6L+5rkXzjXH9JtLsrJkuV8ZMsm64Q+kcb+2pr1coBK4=";
};
sourceRoot = "${src.name}/hydra-cli";
cargoHash = "sha256-WokdTMNA7MrbFcKNeFIRU2Tw6LyM80plDoZPX1v/hrc=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
__darwinAllowLocalNetworking = true;
passthru.tests.version = testers.testVersion {
package = hydra-cli;
version = "0.3.0";
};
meta = {
description = "Client for the Hydra CI";
mainProgram = "hydra-cli";
homepage = "https://github.com/nlewo/hydra-cli";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [
lewo
aleksana
];
};
}