nixpkgs/pkgs/tools/networking/termscp/default.nix
Francesco Gazzetta 1a322c85b7 termscp: 0.8.2 -> 0.9.0
Co-authored-by: Stanisław Pitucha <git@viraptor.info>
2022-07-26 16:50:44 +02:00

56 lines
998 B
Nix

{ lib
, dbus
, fetchFromGitHub
, libssh
, openssl
, pkg-config
, rustPlatform
, AppKit
, Cocoa
, Foundation
, Security
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "termscp";
version = "0.9.0";
src = fetchFromGitHub {
owner = "veeso";
repo = pname;
rev = "v${version}";
sha256 = "sha256-iazp3Qx2AivuL+S1Ma/64BLJtE46tc33dq5qsgw+a6Q=";
};
cargoSha256 = "sha256-FBW3Hl67Efnc/sNGM1LQw6msWHCYRj3KwfmSD2lpbUc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
dbus
libssh
openssl
] ++ lib.optional stdenv.isDarwin [
AppKit
Cocoa
Foundation
Security
];
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [
"-framework" "AppKit"
];
# 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 ];
};
}