at 24.05-pre 50 lines 1.1 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, pkg-config 5, openssl 6, stdenv 7, CoreServices 8, Security 9, SystemConfiguration 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "hop-cli"; 14 version = "0.2.60"; 15 16 src = fetchFromGitHub { 17 owner = "hopinc"; 18 repo = "cli"; 19 rev = "v${version}"; 20 hash = "sha256-zNAV9WdtRBlCh7Joky5Dl+cw/FpY1m/WJxUoNikmXvQ="; 21 }; 22 23 cargoHash = "sha256-1QD6mEXRw3NCTBKJyVGK3demLKUdE6smELpvdFSJiWY="; 24 25 nativeBuildInputs = [ 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 openssl 31 ] ++ lib.optionals stdenv.isDarwin [ 32 CoreServices Security SystemConfiguration 33 ]; 34 35 OPENSSL_NO_VENDOR = 1; 36 37 checkFlags = [ 38 # This test fails on read-only filesystems 39 "--skip=commands::volumes::utils::test::test_parse_target_from_path_like" 40 ]; 41 42 meta = with lib; { 43 mainProgram = "hop"; 44 description = "Interact with Hop in your terminal"; 45 homepage = "https://github.com/hopinc/cli"; 46 changelog = "https://github.com/hopinc/cli/releases/tag/v${version}"; 47 license = licenses.mpl20; 48 maintainers = with maintainers; [ techknowlogick ]; 49 }; 50}