depot/third_party/nixpkgs/pkgs/tools/networking/termscp/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

64 lines
1.2 KiB
Nix

{ lib
, stdenv
, dbus
, fetchFromGitHub
, openssl
, pkg-config
, rustPlatform
, AppKit
, Cocoa
, Foundation
, Security
, samba
}:
rustPlatform.buildRustPackage rec {
pname = "termscp";
version = "0.12.3";
src = fetchFromGitHub {
owner = "veeso";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+5s5PskSHZKv1deti5r986qXg8J9APuVXY+Lvq3ki0w=";
};
cargoPatches = [
./Cargo.lock.patch
];
cargoHash = "sha256-2RmYxtjJm70qbiGl8YHXgebtvNsQvBdgkNDm8td9oNk=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
dbus
openssl
samba
] ++ lib.optionals stdenv.isDarwin [
AppKit
Cocoa
Foundation
Security
];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
"-framework" "AppKit"
]);
# Requires network access
doCheck = false;
meta = with lib; {
description = "A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB";
homepage = "https://github.com/veeso/termscp";
changelog = "https://github.com/veeso/termscp/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}