diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libssh2')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libssh2/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libssh2/default.nix b/nixpkgs/pkgs/development/libraries/libssh2/default.nix new file mode 100644 index 000000000000..ba1455350e60 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libssh2/default.nix @@ -0,0 +1,24 @@ +{ lib, stdenv, fetchurl, openssl, zlib, windows }: + +stdenv.mkDerivation rec { + pname = "libssh2"; + version = "1.11.0"; + + src = fetchurl { + url = "https://www.libssh2.org/download/libssh2-${version}.tar.gz"; + sha256 = "sha256-NzYWHkHiaTMk3rOMJs/cPv5iCdY0ukJY2xzs/2pa1GE="; + }; + + outputs = [ "out" "dev" "devdoc" ]; + + buildInputs = [ openssl zlib ] + ++ lib.optional stdenv.hostPlatform.isMinGW windows.mingw_w64; + + meta = with lib; { + description = "A client-side C library implementing the SSH2 protocol"; + homepage = "https://www.libssh2.org"; + platforms = platforms.all; + license = with licenses; [ bsd3 libssh2 ]; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} |