2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libssh
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2021-12-06 16:07:01 +00:00
|
|
|
, Foundation
|
2021-10-17 09:34:42 +00:00
|
|
|
, Security
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "termscp";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.8.2";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "veeso";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-7T3VmcI9CWrKROQ0U2du2d8e0A6XnOxpd8Zl0T4w+KQ=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
cargoSha256 = "sha256-WuoN7b9Fw2Op8tck4ek8gyufInlbPkDHHtLAsbG1NLE=";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
libssh
|
|
|
|
openssl
|
|
|
|
] ++ lib.optional stdenv.isDarwin [
|
2021-12-06 16:07:01 +00:00
|
|
|
Foundation
|
2021-10-17 09:34:42 +00:00
|
|
|
Security
|
|
|
|
];
|
|
|
|
|
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal tool for file transfer and explorer";
|
|
|
|
homepage = "https://github.com/veeso/termscp";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|