1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7 stdenv,
8 darwin,
9 testers,
10 hydra-cli,
11}:
12
13rustPlatform.buildRustPackage rec {
14 pname = "hydra-cli";
15 version = "0.3.0-unstable-2023-12-20";
16
17 src = fetchFromGitHub {
18 owner = "nlewo";
19 repo = "hydra-cli";
20 rev = "dbb6eaa45c362969382bae7142085be769fa14e6";
21 hash = "sha256-6L+5rkXzjXH9JtLsrJkuV8ZMsm64Q+kcb+2pr1coBK4=";
22 };
23
24 sourceRoot = "${src.name}/hydra-cli";
25
26 cargoHash = "sha256-WokdTMNA7MrbFcKNeFIRU2Tw6LyM80plDoZPX1v/hrc=";
27
28 nativeBuildInputs = [ pkg-config ];
29
30 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
31
32 __darwinAllowLocalNetworking = true;
33
34 passthru.tests.version = testers.testVersion {
35 package = hydra-cli;
36 version = "0.3.0";
37 };
38
39 meta = {
40 description = "Client for the Hydra CI";
41 mainProgram = "hydra-cli";
42 homepage = "https://github.com/nlewo/hydra-cli";
43 license = with lib.licenses; [ mit ];
44 maintainers = with lib.maintainers; [
45 lewo
46 aleksana
47 ];
48 };
49}