nixpkgs/pkgs/tools/admin/hop-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1 KiB
Nix
Raw Normal View History

2023-03-11 05:20:50 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "hop-cli";
2023-08-30 16:04:16 +02:00
version = "0.2.53";
2023-03-11 05:20:50 +01:00
src = fetchFromGitHub {
owner = "hopinc";
repo = "cli";
rev = "v${version}";
2023-08-30 16:04:16 +02:00
hash = "sha256-DyM8OEgO2OtD/PD/I6Ys2Yg0gQMB21OnjFdDkWKw+Io=";
2023-03-11 05:20:50 +01:00
};
2023-08-30 16:04:16 +02:00
cargoHash = "sha256-R6Dbje6OEndJxyWJ8cR/QcfdIBw88Vfbve+EYGozWNc=";
2023-03-11 05:20:50 +01:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
CoreServices Security
];
OPENSSL_NO_VENDOR = 1;
checkFlags = [
# This test fails on read-only filesystems
"--skip=commands::volumes::utils::test::test_parse_target_from_path_like"
];
2023-03-11 05:20:50 +01:00
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 ];
};
}