nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / gu / guile-ssh / package.nix
blob5fca74a79462a37e54d96bcac264a78aa5155dd7
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , guile
6 , libssh
7 , autoreconfHook
8 , pkg-config
9 , texinfo
10 , which
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "guile-ssh";
15   # XXX: using unstable to ensure proper build with libssh 0.11.1 (https://github.com/artyom-poptsov/guile-ssh/issues/42)
16   version = "0.17.0-unstable-2024-10-15";
18   src = fetchFromGitHub {
19     owner = "artyom-poptsov";
20     repo = "guile-ssh";
21     rev = "9336580f92f83bb73041c5374b400144a56b4c35";
22     hash = "sha256-Hwg0xaNSm/SEZfzczjb7o8TJXfzT1mmOk1rJROxahLQ=";
23   };
25   patches = [
26     (fetchpatch {
27       url = "https://github.com/artyom-poptsov/guile-ssh/pull/31/commits/38636c978f257d5228cd065837becabf5da16854.patch";
28       hash = "sha256-J+TDgdjihKoEjhbeH+BzqrHhjpVlGdscRj3L/GAFgKg=";
29     })
30   ];
32   strictDeps = true;
34   nativeBuildInputs = [
35     autoreconfHook
36     guile
37     pkg-config
38     texinfo
39     which
40   ];
42   buildInputs = [
43     guile
44   ];
46   propagatedBuildInputs = [
47     libssh
48   ];
50   enableParallelBuilding = true;
52   # FAIL: server-client.scm
53   doCheck = !stdenv.hostPlatform.isDarwin;
55   postInstall = ''
56     mv $out/bin/*.scm $out/share/guile-ssh
57     rmdir $out/bin
58   '';
60   meta = with lib; {
61     description = "Bindings to Libssh for GNU Guile";
62     homepage = "https://github.com/artyom-poptsov/guile-ssh";
63     license = licenses.gpl3Plus;
64     maintainers = with maintainers; [ ethancedwards8 foo-dogsquared ];
65     platforms = guile.meta.platforms;
66   };