blob: 90b6fd9f2832c06f33ab98d772c5bc6c414ef49e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, stdenv
, fetchFromGitHub
, autoconf
, automake
, libtool
, which
, pkg-config
, gtk3
, lib3270
}:
stdenv.mkDerivation rec {
pname = "libv3270";
version = "5.4";
src = fetchFromGitHub {
owner = "PerryWerneck";
repo = pname;
rev = version;
hash = "sha256-Z3FvxPa1pfeECxfB5ZL6gwhkbTKFpfO3D/zLVLF+uiI=";
};
nativeBuildInputs = [
which
pkg-config
autoconf
automake
libtool
];
buildInputs = [
gtk3
lib3270
];
postPatch = ''
# lib3270_build_data_filename is relative to lib3270's share - not ours.
for f in $(find . -type f -iname "*.c"); do
sed -i -e "s@lib3270_build_data_filename(@g_build_filename(\"$out/share/pw3270\", @" "$f"
done
'';
preConfigure = ''
mkdir -p scripts
touch scripts/config.rpath
NOCONFIGURE=1 sh ./autogen.sh
'';
enableParallelBuilds = true;
meta = with lib; {
description = "3270 Virtual Terminal for GTK";
homepage = "https://github.com/PerryWerneck/libv3270";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.vifino ];
};
}
|