diff --git a/pkgs/by-name/fz/fzssh/package.nix b/pkgs/by-name/fz/fzssh/package.nix new file mode 100644 index 000000000000..b4caf86418fb --- /dev/null +++ b/pkgs/by-name/fz/fzssh/package.nix @@ -0,0 +1,60 @@ +{ + fetchurl, + lib, + libargon2, + libfilezilla, + meson, + nettle, + ninja, + pkg-config, + stdenv, + testers, + + autoreconfHook, + gettext, + gnutls, + libiconv, + libxcrypt, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "fzssh"; + version = "1.2.1"; + __structuredAttrs = true; + + src = fetchurl { + # Upstream download link was made unstable on purpose + # See https://trac.filezilla-project.org/ticket/13186 + url = "https://sources.archlinux.org/other/packages/fzssh/fzssh-${finalAttrs.version}.tar.xz"; + hash = "sha256-oFj1meahLF00t0hu4Ra4zvfG5sq/6xchd5xDjGHx/h0="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + libargon2 + libfilezilla + nettle + ]; + + passthru.tests = { + pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + versionCheck = true; + }; + }; + + meta = { + homepage = "https://lib.filezilla-project.org/"; + description = "SSH/SFTP library based on libfilezilla"; + license = lib.licenses.gpl3Plus; + maintainers = [ ]; + pkgConfigModules = [ "libfzssh-client" ]; + }; +})