2021-10-17 18:56:47 +01:00
|
|
|
{ lib
|
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libssh
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2021-11-08 16:20:33 +00:00
|
|
|
, Foundation
|
2021-10-17 18:56:47 +01:00
|
|
|
, Security
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "termscp";
|
2022-04-06 21:13:02 +01:00
|
|
|
version = "0.8.1";
|
2021-10-17 18:56:47 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "veeso";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-06 21:13:02 +01:00
|
|
|
sha256 = "sha256-WqOkud8gOa81P6FT44y5RZX4CWjmou9HufZ3QPoYuAk=";
|
2021-10-17 18:56:47 +01:00
|
|
|
};
|
|
|
|
|
2022-04-06 21:13:02 +01:00
|
|
|
cargoSha256 = "sha256-jckJiFhiUvbn0fkgKzqDorWQvuLenx/S8+RyPoqaWUg=";
|
2021-10-17 18:56:47 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
libssh
|
|
|
|
openssl
|
|
|
|
] ++ lib.optional stdenv.isDarwin [
|
2021-11-08 16:20:33 +00:00
|
|
|
Foundation
|
2021-10-17 18:56:47 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|