mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +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.
82 lines
1.5 KiB
Nix
82 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
|
|
, openssl
|
|
, readline
|
|
}:
|
|
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.hostPlatform.isLinux "unix";
|
|
|
|
configureFlags = lib.optionals stdenv.hostPlatform.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
|
|
openssl
|
|
readline
|
|
] ++ lib.optionals stdenv.hostPlatform.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 ];
|
|
};
|
|
}
|