18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
23 owner = "PerryWerneck";
26 hash = "sha256-Nk/OUqrWngKgb1D1Wi8q5ygKtvuRKUPhPQaLvWi1Z4g=";
48 # lib3270_build_data_filename is relative to lib3270's share - not ours.
49 for f in $(find . -type f -iname "*.c"); do
50 sed -i -e "s@lib3270_build_data_filename(@g_build_filename(\"$out/share/pw3270\", @" "$f"
55 NOCONFIGURE=1 sh autogen.sh
59 # Schemas get installed to wrong directory.
60 mkdir -p $out/share/glib-2.0
61 mv $out/share/gsettings-schemas/pw3270-${version}/glib-2.0/schemas $out/share/glib-2.0/
62 rm -rf $out/share/gsettings-schemas
65 enableParallelBuilding = true;
68 description = "3270 Emulator for gtk";
69 homepage = "https://softwarepublico.gov.br/social/pw3270/";
70 license = licenses.lgpl3Plus;
71 maintainers = [ maintainers.vifino ];
72 mainProgram = "pw3270";