mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, CoreServices
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "hop-cli";
|
|
version = "0.2.53";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hopinc";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-DyM8OEgO2OtD/PD/I6Ys2Yg0gQMB21OnjFdDkWKw+Io=";
|
|
};
|
|
|
|
cargoHash = "sha256-R6Dbje6OEndJxyWJ8cR/QcfdIBw88Vfbve+EYGozWNc=";
|
|
|
|
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 ];
|
|
};
|
|
}
|