diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/guile-modules/guile-ssh/default.nix | 51 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/guile-modules/guile-ssh/default.nix b/pkgs/development/guile-modules/guile-ssh/default.nix new file mode 100644 index 0000000000000..b7e742384df63 --- /dev/null +++ b/pkgs/development/guile-modules/guile-ssh/default.nix @@ -0,0 +1,51 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1213a05d66c1c..04a5ebedd7e8d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12712,6 +12712,8 @@ in guile-sdl2 = callPackage ../development/guile-modules/guile-sdl2 { }; + guile-ssh = callPackage ../development/guile-modules/guile-ssh { }; + guile-xcb = callPackage ../development/guile-modules/guile-xcb { guile = guile_2_0; }; |