2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
openssl,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
testers,
|
|
|
|
hydra-cli,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hydra-cli";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.3.0-unstable-2023-12-20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nlewo";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "hydra-cli";
|
|
|
|
rev = "dbb6eaa45c362969382bae7142085be769fa14e6";
|
|
|
|
hash = "sha256-6L+5rkXzjXH9JtLsrJkuV8ZMsm64Q+kcb+2pr1coBK4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
sourceRoot = "${src.name}/hydra-cli";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-WokdTMNA7MrbFcKNeFIRU2Tw6LyM80plDoZPX1v/hrc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = hydra-cli;
|
|
|
|
version = "0.3.0";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Client for the Hydra CI";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "hydra-cli";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nlewo/hydra-cli";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
lewo
|
|
|
|
aleksana
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|