nixpkgs/pkgs/development/tools/misc/hydra-cli/default.nix

30 lines
788 B
Nix
Raw Normal View History

2019-08-29 10:52:31 +01:00
{ stdenv, lib, pkgconfig, openssl, fetchFromGitHub, rustPlatform, darwin }:
rustPlatform.buildRustPackage rec {
pname = "hydra-cli";
2020-11-15 08:42:29 +00:00
version = "0.3.0";
2019-08-29 10:52:31 +01:00
src = fetchFromGitHub {
owner = "nlewo";
repo = pname;
rev = "v${version}";
2020-11-15 08:42:29 +00:00
sha256 = "1fd3swdjx249971ak1bgndm5kh6rlzbfywmydn122lhfi6ry6a03";
2019-08-29 10:52:31 +01:00
};
2020-11-15 08:42:29 +00:00
cargoSha256 = "1fjzcgayyha270bdxl5p6c337nq8zj4h81rk4ih9czyz3yaxga3f";
2019-08-29 10:52:31 +01:00
2020-03-29 08:24:48 +01:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
2019-08-29 10:52:31 +01:00
nativeBuildInputs = [
pkgconfig
];
meta = with stdenv.lib; {
description = "A client for the Hydra CI";
homepage = "https://github.com/nlewo/hydra-cli";
license = with licenses; [ mit ];
maintainers = with maintainers; [ gilligan lewo ];
};
}