2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
2023-02-22 10:55:15 +00:00
|
|
|
, stdenv
|
2021-10-17 09:34:42 +00:00
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2022-08-12 12:06:08 +00:00
|
|
|
, AppKit
|
|
|
|
, Cocoa
|
2021-12-06 16:07:01 +00:00
|
|
|
, Foundation
|
2021-10-17 09:34:42 +00:00
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "termscp";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "0.11.0";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "veeso";
|
|
|
|
repo = pname;
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+5ljnCVbaiqqfXCJjMMInoLjLmZjCIoDkQi9pS6VKpc=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
cargoHash = "sha256-GoWVDU1XVjbzZlGPEuHucnxcvhf4Rqx/nSEVygD9gCo=";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
openssl
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2022-08-12 12:06:08 +00:00
|
|
|
AppKit
|
|
|
|
Cocoa
|
2021-12-06 16:07:01 +00:00
|
|
|
Foundation
|
2021-10-17 09:34:42 +00:00
|
|
|
Security
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [
|
|
|
|
"-framework" "AppKit"
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal tool for file transfer and explorer";
|
|
|
|
homepage = "https://github.com/veeso/termscp";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/veeso/termscp/blob/v${version}/CHANGELOG.md";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|