2020-08-29 14:05:00 +00:00
|
|
|
{ stdenv, fetchurl, readline }:
|
2017-12-19 03:32:32 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.5c";
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "zssh";
|
|
|
|
inherit version;
|
2017-12-19 03:32:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 21:52:01 +00:00
|
|
|
url = "mirror://sourceforge/zssh/${pname}-${version}.tgz";
|
2017-12-19 03:32:32 +00:00
|
|
|
sha256 = "06z73iq59lz8ibjrgs7d3xl39vh9yld1988yx8khssch4pw41s52";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Cargo-culted from Arch, returns “out of pty's” without it
|
|
|
|
(fetchurl {
|
|
|
|
name = "fix_use_ptmx_on_arch.patch";
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/fix_use_ptmx_on_arch.patch?h=packages/zssh&id=0a7c92543f9309856d02e31196f06d7c3eaa8b67";
|
2017-12-19 03:32:32 +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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://zssh.sourceforge.net/";
|
2017-12-19 03:32:32 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2020-08-29 14:05:00 +00:00
|
|
|
maintainers = [ ]; # required by deepin-terminal
|
2017-12-19 03:32:32 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|