9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
32 lines
881 B
Nix
32 lines
881 B
Nix
{ stdenv, fetchurl, pkg-config, cmake, zlib, openssl, libsodium }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libssh";
|
|
version = "0.8.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.libssh.org/files/0.8/${pname}-${version}.tar.xz";
|
|
sha256 = "09b8w9m5qiap8wbvz4613nglsynpk8hn0q9b929ny2y4l2fy2nc5";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Fix headers to use libsodium instead of NaCl
|
|
sed -i 's,nacl/,sodium/,g' ./include/libssh/curve25519.h src/curve25519.c
|
|
'';
|
|
|
|
# single output, otherwise cmake and .pc files point to the wrong directory
|
|
# outputs = [ "out" "dev" ];
|
|
|
|
buildInputs = [ zlib openssl libsodium ];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "SSH client library";
|
|
homepage = "https://libssh.org";
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = with maintainers; [ sander ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|