mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, readline }:
|
|
|
|
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";
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/0a7c92543f9309856d02e31196f06d7c3eaa8b67/trunk/fix_use_ptmx_on_arch.patch";
|
|
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";
|
|
homepage = "https://zssh.sourceforge.net/";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ ]; # required by deepin-terminal
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|