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