841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, guile
|
|
, libssh
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, texinfo
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "guile-ssh";
|
|
version = "0.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "artyom-poptsov";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "LzTR1QuK3mle0Q6a4YRn9ZTkcs1sygYKoezxI9+e/fY=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|