blob: 4d9734874e2c93ad0150c92ccc11ec83092f4806 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, CoreServices
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "hop-cli";
version = "0.2.54";
src = fetchFromGitHub {
owner = "hopinc";
repo = "cli";
rev = "v${version}";
hash = "sha256-0BIPN4+XYZgUdxygpKpWZq6VkWWNCFD8v5egXOYfC64=";
};
cargoHash = "sha256-KE7AAyArRang/EZrpgv+vlNZaAP/Y2pCltiPMgZ5vFA=";
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"
];
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 ];
};
}
|