Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion pkgs/development/libraries/libssh2/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{ lib, stdenv, fetchurl, openssl, zlib, windows }:
{ lib
, stdenv
, fetchurl
, openssl
, zlib
, windows

# for passthru.tests
, aria2
, curl
, libgit2
, mc
, vlc
}:

stdenv.mkDerivation rec {
pname = "libssh2";
Expand All @@ -15,6 +28,11 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib ]
++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64;

passthru.tests = {
inherit aria2 libgit2 mc vlc;
curl = (curl.override { scpSupport = true; }).tests.withCheck;
};

meta = with lib; {
description = "A client-side C library implementing the SSH2 protocol";
homepage = "https://www.libssh2.org";
Expand Down