acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / x3 / x3270 / package.nix
blob45b08bd10f6647cef3c27f4b721c1ff4fb2864c1
1 { stdenv
2 , darwin
3 , lib
4 , libiconv
5 , fetchurl
6 , m4
7 , expat
8 , libX11
9 , libXt
10 , libXaw
11 , libXmu
12 , bdftopcf
13 , mkfontdir
14 , fontadobe100dpi
15 , fontadobeutopia100dpi
16 , fontbh100dpi
17 , fontbhlucidatypewriter100dpi
18 , fontbitstream100dpi
19 , tcl
20 , ncurses
21 , openssl
22 , readline
24 let
25   majorVersion = "4";
26   minorVersion = "3";
27   versionSuffix = "ga8";
29 stdenv.mkDerivation rec {
30   pname = "x3270";
31   version = "${majorVersion}.${minorVersion}${versionSuffix}";
33   src = fetchurl {
34     url =
35       "http://x3270.bgp.nu/download/0${majorVersion}.0${minorVersion}/suite3270-${version}-src.tgz";
36     sha256 = "sha256-gcC6REfZentIPEDhGznUSYu8mvVfpPeMz/Bks+N43Fk=";
37   };
39   buildFlags = lib.optional stdenv.hostPlatform.isLinux "unix";
41   configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [
42     "--enable-c3270"
43     "--enable-pr3270"
44     "--enable-s3270"
45     "--enable-tcl3270"
46   ];
48   postBuild = ''
49     make install.man
50   '';
52   pathsToLink = [ "/share/man" ];
54   nativeBuildInputs = [ m4 ];
55   buildInputs = [
56     expat
57     libX11
58     libXt
59     libXaw
60     libXmu
61     bdftopcf
62     mkfontdir
63     fontadobe100dpi
64     fontadobeutopia100dpi
65     fontbh100dpi
66     fontbhlucidatypewriter100dpi
67     fontbitstream100dpi
68     tcl
69     ncurses
70     expat
71     openssl
72     readline
73   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
75   meta = with lib; {
76     description = "IBM 3270 terminal emulator for the X Window System";
77     homepage = "http://x3270.bgp.nu/index.html";
78     license = licenses.bsd3;
79     maintainers = [ maintainers.anna328p ];
80   };