2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, CoreServices
|
|
|
|
, Security
|
2023-11-16 04:20:00 +00:00
|
|
|
, SystemConfiguration
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hop-cli";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.2.61";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hopinc";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-omKLUe4JxF3SN4FHbO6YpIRt97f8wWY3oy7VHfvONRc=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cargoHash = "sha256-yZKTVF810v27CnjwocEE2KYtrXggdEFPbKH5/4MMMhQ=";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2023-11-16 04:20:00 +00:00
|
|
|
CoreServices Security SystemConfiguration
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# This test fails on read-only filesystems
|
|
|
|
"--skip=commands::volumes::utils::test::test_parse_target_from_path_like"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = "hop";
|
|
|
|
description = "Interact with Hop in your terminal";
|
|
|
|
homepage = "https://github.com/hopinc/cli";
|
|
|
|
changelog = "https://github.com/hopinc/cli/releases/tag/v${version}";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
|
|
};
|
|
|
|
}
|