1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/terminal-emulators/x3270/default.nix
Scott Windsor 80aac730a6 x3270: 4.0ga9 -> 4.3ga8
* upgrade to latest release
* fixes broken darwin build by adding dependancies
* disables x11 build for darwin
* adds man page installation

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-04-27 10:21:57 -07:00

78 lines
1.5 KiB
Nix

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