From 145736a0d772110c24da9ed6a0001cbfef0d3755 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Oct 2021 19:56:47 +0200 Subject: [PATCH] termscp: init at 0.7.0 --- pkgs/tools/networking/termscp/default.nix | 46 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/tools/networking/termscp/default.nix diff --git a/pkgs/tools/networking/termscp/default.nix b/pkgs/tools/networking/termscp/default.nix new file mode 100644 index 000000000000..3bc12747b746 --- /dev/null +++ b/pkgs/tools/networking/termscp/default.nix @@ -0,0 +1,46 @@ +{ lib +, dbus +, fetchFromGitHub +, libssh +, openssl +, pkg-config +, rustPlatform +, Security +, stdenv +}: + +rustPlatform.buildRustPackage rec { + pname = "termscp"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "veeso"; + repo = pname; + rev = "v${version}"; + sha256 = "131kij6pnw9r0p2a28g00z85dh758h4rm9ic09qmp61cq7dphkc1"; + }; + + cargoSha256 = "1k2vwmfy6dczgs3bz8k4j24cc8l7l9fdh3ymp79ril4rp1v6kfp2"; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + dbus + libssh + openssl + ] ++ lib.optional stdenv.isDarwin [ + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b19c0e62ca19..95bd39456288 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9720,6 +9720,10 @@ with pkgs; telescope = callPackage ../applications/networking/browsers/telescope { }; + termscp = callPackage ../tools/networking/termscp { + inherit (darwin.apple_sdk.frameworks) Security; + }; + termius = callPackage ../applications/networking/termius { }; termplay = callPackage ../tools/misc/termplay { };