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
|
2023-10-09 19:29:22 +00:00
|
|
|
, samba
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "termscp";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.14.0";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "veeso";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "termscp";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-XK0bH5ru248tSlD3Sdxb07O6i335dfTFvxDzKdc/3GQ=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-DzKxVqE0GMmpkxLH3raASgha9qGGs4kaUdSaviUwvdM=";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
openssl
|
2023-10-09 19:29:22 +00:00
|
|
|
samba
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.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;
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [
|
2022-08-12 12:06:08 +00:00
|
|
|
"-framework" "AppKit"
|
2023-03-04 12:14:45 +00:00
|
|
|
]);
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB";
|
2021-10-17 09:34:42 +00:00
|
|
|
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 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "termscp";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
}
|