Commit 04101ed0 authored by magicquark's avatar magicquark
Browse files
parent 37d8a32b
Loading
Loading
Loading
Loading
+6 −19
Original line number Diff line number Diff line
@@ -2,33 +2,29 @@
  lib,
  stdenv,
  fetchFromGitHub,
  which,
  pkg-config,
  autoconf,
  automake,
  libtool,
  gettext,
  openssl,
  curl,
  meson,
  ninja,
}:

stdenv.mkDerivation rec {
  pname = "lib3270";
  version = "5.4";
  version = "5.5.0";

  src = fetchFromGitHub {
    owner = "PerryWerneck";
    repo = "lib3270";
    rev = version;
    hash = "sha256-w6Bg+TvSDAuZwtu/nyAIuq6pgheM5nXtfuryECfnKng=";
    hash = "sha256-AGS7RkMeVKe2Ed5Aj3oHdbiGMoYGmq2Wlkcd4wSm4J8=";
  };

  nativeBuildInputs = [
    which
    pkg-config
    autoconf
    automake
    libtool
    meson
    ninja
  ];

  buildInputs = [
@@ -37,15 +33,6 @@ stdenv.mkDerivation rec {
    curl
  ];

  postPatch = ''
    # Patch the required version.
    sed -i -e "s/20211118/19800101/" src/core/session.c
  '';

  preConfigure = ''
    NOCONFIGURE=1 sh autogen.sh
  '';

  enableParallelBuilding = true;

  meta = with lib; {