Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 58 lines 969 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 which, 6 pkg-config, 7 autoconf, 8 automake, 9 libtool, 10 gettext, 11 openssl, 12 curl, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "lib3270"; 17 version = "5.4"; 18 19 src = fetchFromGitHub { 20 owner = "PerryWerneck"; 21 repo = "lib3270"; 22 rev = version; 23 hash = "sha256-w6Bg+TvSDAuZwtu/nyAIuq6pgheM5nXtfuryECfnKng="; 24 }; 25 26 nativeBuildInputs = [ 27 which 28 pkg-config 29 autoconf 30 automake 31 libtool 32 ]; 33 34 buildInputs = [ 35 gettext 36 openssl 37 curl 38 ]; 39 40 postPatch = '' 41 # Patch the required version. 42 sed -i -e "s/20211118/19800101/" src/core/session.c 43 ''; 44 45 preConfigure = '' 46 NOCONFIGURE=1 sh autogen.sh 47 ''; 48 49 enableParallelBuilding = true; 50 51 meta = with lib; { 52 description = "TN3270 client Library"; 53 homepage = "https://github.com/PerryWerneck/lib3270"; 54 license = licenses.lgpl3Plus; 55 maintainers = [ maintainers.vifino ]; 56 broken = stdenv.hostPlatform.isDarwin; 57 }; 58}