mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 20:03:24 +00:00
commit
2edf7b1b2b
56
pkgs/by-name/li/lib3270/package.nix
Normal file
56
pkgs/by-name/li/lib3270/package.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ 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
|
||||
'';
|
||||
|
||||
enableParallelBuilds = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "TN3270 client Library";
|
||||
homepage = "https://github.com/PerryWerneck/lib3270";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = [ maintainers.vifino ];
|
||||
};
|
||||
}
|
58
pkgs/by-name/li/libv3270/package.nix
Normal file
58
pkgs/by-name/li/libv3270/package.nix
Normal file
@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
76
pkgs/by-name/pw/pw3270/package.nix
Normal file
76
pkgs/by-name/pw/pw3270/package.nix
Normal file
@ -0,0 +1,76 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, which
|
||||
, pkg-config
|
||||
, automake
|
||||
, autoconf
|
||||
, m4
|
||||
, libtool
|
||||
, gtk3
|
||||
, libv3270
|
||||
, lib3270
|
||||
, openssl
|
||||
, gettext
|
||||
, desktop-file-utils
|
||||
, glib
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pw3270";
|
||||
version = "5.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PerryWerneck";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-Nk/OUqrWngKgb1D1Wi8q5ygKtvuRKUPhPQaLvWi1Z4g=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
which
|
||||
pkg-config
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
desktop-file-utils
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
gettext
|
||||
libv3270
|
||||
lib3270
|
||||
openssl
|
||||
];
|
||||
|
||||
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 = ''
|
||||
NOCONFIGURE=1 sh autogen.sh
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# Schemas get installed to wrong directory.
|
||||
mkdir -p $out/share/glib-2.0
|
||||
mv $out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas $out/share/glib-2.0/
|
||||
rm -rf $out/share/gsettings-schemas
|
||||
'';
|
||||
|
||||
enableParallelBuilds = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "3270 Emulator for gtk";
|
||||
homepage = "https://softwarepublico.gov.br/social/pw3270/";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = [ maintainers.vifino ];
|
||||
mainProgram = "pw3270";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user