2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, readline }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.5c";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "zssh";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/zssh/${pname}-${version}.tgz";
|
|
|
|
sha256 = "06z73iq59lz8ibjrgs7d3xl39vh9yld1988yx8khssch4pw41s52";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Cargo-culted from Arch, returns “out of pty's” without it
|
|
|
|
(fetchurl {
|
|
|
|
name = "fix_use_ptmx_on_arch.patch";
|
2021-07-14 22:03:04 +00:00
|
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/0a7c92543f9309856d02e31196f06d7c3eaa8b67/trunk/fix_use_ptmx_on_arch.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "12daw9wpy58ql882zww945wk9cg2adwp8qsr5rvazx0xq0qawgbr";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p0" ];
|
|
|
|
|
|
|
|
# The makefile does not create the directories
|
|
|
|
postBuild = ''
|
|
|
|
install -dm755 "$out"/{bin,man/man1}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SSH and Telnet client with ZMODEM file transfer capability";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://zssh.sourceforge.net/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = [ ]; # required by deepin-terminal
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|