depot/third_party/nixpkgs/pkgs/by-name/li/lib3270/package.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

56 lines
909 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, which
, pkg-config
, autoconf
, automake
, libtool
, gettext
, openssl
, curl
}:
stdenv.mkDerivation rec {
pname = "lib3270";
version = "5.4";
src = fetchFromGitHub {
owner = "PerryWerneck";
repo = pname;
rev = version;
hash = "sha256-w6Bg+TvSDAuZwtu/nyAIuq6pgheM5nXtfuryECfnKng=";
};
nativeBuildInputs = [
which
pkg-config
autoconf
automake
libtool
];
buildInputs = [
gettext
openssl
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; {
description = "TN3270 client Library";
homepage = "https://github.com/PerryWerneck/lib3270";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.vifino ];
};
}