2024-04-18 05:33:27 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
lib,
|
|
|
|
libiconv,
|
|
|
|
fetchurl,
|
|
|
|
m4,
|
|
|
|
expat,
|
|
|
|
libX11,
|
|
|
|
libXt,
|
|
|
|
libXaw,
|
|
|
|
libXmu,
|
|
|
|
bdftopcf,
|
|
|
|
mkfontdir,
|
|
|
|
fontadobe100dpi,
|
|
|
|
fontadobeutopia100dpi,
|
|
|
|
fontbh100dpi,
|
|
|
|
fontbhlucidatypewriter100dpi,
|
|
|
|
fontbitstream100dpi,
|
2020-03-26 16:10:30 +00:00
|
|
|
tcl,
|
2024-04-18 05:33:27 +00:00
|
|
|
ncurses,
|
2024-05-10 02:18:08 +00:00
|
|
|
openssl,
|
|
|
|
readline,
|
2024-04-18 05:33:27 +00:00
|
|
|
}:
|
2020-03-26 16:10:30 +00:00
|
|
|
let
|
|
|
|
majorVersion = "4";
|
2024-04-18 05:33:27 +00:00
|
|
|
minorVersion = "3";
|
|
|
|
versionSuffix = "ga8";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-26 16:10:30 +00:00
|
|
|
pname = "x3270";
|
|
|
|
version = "${majorVersion}.${minorVersion}${versionSuffix}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-04-18 05:33:27 +00:00
|
|
|
url = "http://x3270.bgp.nu/download/0${majorVersion}.0${minorVersion}/suite3270-${version}-src.tgz";
|
|
|
|
sha256 = "sha256-gcC6REfZentIPEDhGznUSYu8mvVfpPeMz/Bks+N43Fk=";
|
2020-03-26 16:10:30 +00:00
|
|
|
};
|
|
|
|
|
2024-04-18 05:33:27 +00:00
|
|
|
buildFlags = lib.optional stdenv.hostPlatform.isLinux "unix";
|
|
|
|
|
|
|
|
configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
"--enable-c3270"
|
|
|
|
"--enable-pr3270"
|
|
|
|
"--enable-s3270"
|
|
|
|
"--enable-tcl3270"
|
|
|
|
];
|
2020-03-26 16:10:30 +00:00
|
|
|
|
2024-04-18 05:33:27 +00:00
|
|
|
postBuild = ''
|
|
|
|
make install.man
|
2020-03-26 16:10:30 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-18 05:33:27 +00:00
|
|
|
pathsToLink = [ "/share/man" ];
|
|
|
|
|
2020-03-26 16:10:30 +00:00
|
|
|
nativeBuildInputs = [ m4 ];
|
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
expat
|
2024-04-18 05:33:27 +00:00
|
|
|
libX11
|
|
|
|
libXt
|
|
|
|
libXaw
|
|
|
|
libXmu
|
|
|
|
bdftopcf
|
|
|
|
mkfontdir
|
|
|
|
fontadobe100dpi
|
|
|
|
fontadobeutopia100dpi
|
|
|
|
fontbh100dpi
|
|
|
|
fontbhlucidatypewriter100dpi
|
|
|
|
fontbitstream100dpi
|
2020-03-26 16:10:30 +00:00
|
|
|
tcl
|
|
|
|
ncurses
|
|
|
|
expat
|
2024-05-10 02:18:08 +00:00
|
|
|
openssl
|
|
|
|
readline
|
2024-04-18 05:33:27 +00:00
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
libiconv
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2020-03-26 16:10:30 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-26 16:10:30 +00:00
|
|
|
description = "IBM 3270 terminal emulator for the X Window System";
|
|
|
|
homepage = "http://x3270.bgp.nu/index.html";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.anna328p ];
|
|
|
|
};
|
|
|
|
}
|