2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, guile
|
|
|
|
, libssh
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, texinfo
|
|
|
|
, which
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "guile-ssh";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.15.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "artyom-poptsov";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-+BhyaBieqMwTgsSLci3HJdCrNQmfPN/jK2Od5DQs9n8=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--with-guilesitedir=\${out}/share/guile/site" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for f in $out/share/guile/site/ssh/**.scm; do \
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "libguile-ssh" "$out/lib/libguile-ssh"; \
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook pkg-config texinfo which
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
guile
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libssh
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bindings to Libssh for GNU Guile";
|
|
|
|
homepage = "https://github.com/artyom-poptsov/guile-ssh";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ethancedwards8 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|