blob: e7654b747c3a1b27669873861c4acad4323611c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, stdenv
, fetchFromGitHub
, guile
, libssh
, autoreconfHook
, pkg-config
, texinfo
, which
}:
stdenv.mkDerivation rec {
pname = "guile-ssh";
version = "0.16.3";
src = fetchFromGitHub {
owner = "artyom-poptsov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-P29U88QrCjoyl/wdTPZbiMoykd/v6ul6CW/IJn9UAyw=";
};
configureFlags = [ "--with-guilesitedir=\${out}/${guile.siteDir}" ];
postFixup = ''
for f in $out/${guile.siteDir}/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 = guile.meta.platforms;
};
}
|