2025-07-26 11:39:35 +02:00

75 lines
1.8 KiB
Nix

{
lib,
stdenvNoCC,
dbus,
fetchFromGitHub,
openssl,
pkg-config,
rustPlatform,
samba,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "termscp";
version = "0.18.0";
src = fetchFromGitHub {
owner = "veeso";
repo = "termscp";
tag = "v${version}";
hash = "sha256-QBvxXl1+f2617dwoZzSJq9vQY6hOXeHZjEh4xqMyayA=";
};
cargoHash = "sha256-ghJdAou3IsDVmOnDYiYO1yR3BtkrfUek10Bh9GuVH1E=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
dbus
openssl
samba
];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
checkFeatures = [ "isolated-tests" ];
checkFlags = [
# requires networking
"--skip=cli::remote::test::test_should_make_remote_args_from_one_bookmark_and_one_remote_with_local_dir"
"--skip=cli::remote::test::test_should_make_remote_args_from_two_bookmarks_and_local_dir"
"--skip=cli::remote::test::test_should_make_remote_args_from_two_remotes_and_local_dir"
]
++ lib.optionals stdenvNoCC.hostPlatform.isDarwin [
"--skip=system::watcher::test::should_poll_file_removed"
"--skip=system::watcher::test::should_poll_file_update"
"--skip=system::watcher::test::should_poll_nothing"
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/veeso/termscp/blob/v${version}/CHANGELOG.md";
description = "Feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB";
homepage = "https://github.com/veeso/termscp";
license = lib.licenses.mit;
mainProgram = "termscp";
maintainers = with lib.maintainers; [
fab
gepbird
];
platforms = with lib.platforms; linux ++ darwin;
};
}