Unverified Commit 3a705692 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

x3270: 4.3ga8 -> 4.4ga6 (#438092)

parents 4d847c7f 6d1eef9f
Loading
Loading
Loading
Loading
+24 −10
Original line number Diff line number Diff line
@@ -19,22 +19,27 @@
  tcl,
  ncurses,
  openssl,
  python3,
  readline,
}:
let
  majorVersion = "4";
  minorVersion = "3";
  versionSuffix = "ga8";
  minorVersion = "4";
  versionSuffix = "ga6";
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  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=";
    url = "http://x3270.bgp.nu/download/0${majorVersion}.0${minorVersion}/suite3270-${finalAttrs.version}-src.tgz";
    hash = "sha256-hDju5ZeVzTv78ZYwUzabmqMK9rheTZJ7clTSTpkkM7E=";
  };

  postPatch = ''
    patchShebangs .
  '';

  buildFlags = lib.optional stdenv.hostPlatform.isLinux "unix";

  configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [
@@ -44,13 +49,22 @@ stdenv.mkDerivation rec {
    "--enable-tcl3270"
  ];

  preBuild = ''
    if [ -n "$SOURCE_DATE_EPOCH" ]; then
      export SOURCE_DATE_EPOCH="$(date -u -d "@$SOURCE_DATE_EPOCH" '+%a %b %d %H:%M:%S UTC %Y')"
    fi
  '';

  postBuild = ''
    make install.man
  '';

  pathsToLink = [ "/share/man" ];

  nativeBuildInputs = [ m4 ];
  nativeBuildInputs = [
    m4
    python3
  ];
  buildInputs = [
    expat
    libX11
@@ -74,10 +88,10 @@ stdenv.mkDerivation rec {
    libiconv
  ];

  meta = with lib; {
  meta = {
    description = "IBM 3270 terminal emulator for the X Window System";
    homepage = "https://x3270.bgp.nu/index.html";
    license = licenses.bsd3;
    maintainers = [ maintainers.anna328p ];
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.anna328p ];
  };
}
})