nixpkgs/pkgs/development/guile-modules/guile-ssh/default.nix
Gabriel Arazas 22c5e1a0a0
guile-ssh: clean up the package (#256541)
* guile-ssh: add foo-dogsquared as maintainer

* guile-ssh: reformat buildInputs

* guile-ssh: add patch for installing module

It makes for an easier time configuring the module installation.

* guile-ssh: remove extension patches

nixpkgs have properly initialized search paths for Guile extensions now
(at least for Guile 3.0.6 and above) so no need to patch the scheme.

* guile-ssh: enable checks

---------

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2023-09-21 22:52:02 +02:00

67 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, guile
, libssh
, autoreconfHook
, pkg-config
, texinfo
, which
}:
stdenv.mkDerivation (finalAttrs: {
pname = "guile-ssh";
version = "0.16.3";
src = fetchFromGitHub {
owner = "artyom-poptsov";
repo = "guile-ssh";
rev = "v${finalAttrs.version}";
hash = "sha256-P29U88QrCjoyl/wdTPZbiMoykd/v6ul6CW/IJn9UAyw=";
};
patches = [
(fetchpatch {
url = "https://github.com/artyom-poptsov/guile-ssh/pull/31/commits/38636c978f257d5228cd065837becabf5da16854.patch";
hash = "sha256-J+TDgdjihKoEjhbeH+BzqrHhjpVlGdscRj3L/GAFgKg=";
})
];
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
guile
pkg-config
texinfo
which
];
buildInputs = [
guile
];
propagatedBuildInputs = [
libssh
];
enableParallelBuilding = true;
# FAIL: server-client.scm
doCheck = !stdenv.isDarwin;
postInstall = ''
mv $out/bin/*.scm $out/share/guile-ssh
rmdir $out/bin
'';
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 foo-dogsquared ];
platforms = guile.meta.platforms;
};
})