2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, pkg-config, openssl, fetchFromGitHub, rustPlatform, darwin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hydra-cli";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "0.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nlewo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "1fd3swdjx249971ak1bgndm5kh6rlzbfywmydn122lhfi6ry6a03";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "16446ppkvc6l8087x5m5kyy5gk4f7inyj7rzrfysriw4fvqxjsf3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A client for the Hydra CI";
|
|
|
|
homepage = "https://github.com/nlewo/hydra-cli";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ gilligan lewo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|