
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoconf,
|
|
automake,
|
|
libtool,
|
|
which,
|
|
pkg-config,
|
|
gtk3,
|
|
lib3270,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libv3270";
|
|
version = "5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PerryWerneck";
|
|
repo = "libv3270";
|
|
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
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "3270 Virtual Terminal for GTK";
|
|
homepage = "https://github.com/PerryWerneck/libv3270";
|
|
changelog = "https://github.com/PerryWerneck/libv3270/blob/master/CHANGELOG";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = [ maintainers.vifino ];
|
|
};
|
|
}
|