Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7 testers, 8 hydra-cli, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "hydra-cli"; 13 version = "0.3.0-unstable-2023-12-20"; 14 15 src = fetchFromGitHub { 16 owner = "nlewo"; 17 repo = "hydra-cli"; 18 rev = "dbb6eaa45c362969382bae7142085be769fa14e6"; 19 hash = "sha256-6L+5rkXzjXH9JtLsrJkuV8ZMsm64Q+kcb+2pr1coBK4="; 20 }; 21 22 sourceRoot = "${src.name}/hydra-cli"; 23 24 cargoHash = "sha256-JnfonNdy87Ol6j8x3270RrVv/13vNLEa1n+/aeEbc7U="; 25 26 nativeBuildInputs = [ pkg-config ]; 27 28 buildInputs = [ 29 openssl 30 ]; 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}