ted: drop
part of: PR NixOS#356387 doesn't build with pcre2 no upstream activity for 13 years: https://ftp.nluug.nl/pub/editors/ted/announce.html
This commit is contained in:
@@ -1,124 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
zlib,
|
||||
pcre,
|
||||
libxpm,
|
||||
libx11,
|
||||
libsm,
|
||||
libice,
|
||||
libjpeg,
|
||||
libtiff,
|
||||
libpng,
|
||||
gtk2-x11,
|
||||
libpaper,
|
||||
makeWrapper,
|
||||
ghostscript,
|
||||
libxft,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ted";
|
||||
version = "2.23";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ftp.nluug.nl/pub/editors/ted/ted-${version}.src.tar.gz";
|
||||
hash = "sha256-P6mSwryWrzyniO+UHLUxT0odhDIC79AgG4tO6a2/MWw=";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
mkdir pkgconfig-append
|
||||
pushd pkgconfig-append
|
||||
|
||||
# ted looks for libtiff, not libtiff-4 in its pkg-config invokations
|
||||
cp ${libtiff.dev}/lib/pkgconfig/libtiff-4.pc libtiff.pc
|
||||
|
||||
# ted needs a libpaper pkg-config file
|
||||
cat > libpaper.pc << EOF
|
||||
prefix=${libpaper}
|
||||
libdir=${libpaper}/lib
|
||||
includedir=${libpaper}/include
|
||||
exec_prefix=\''${prefix}
|
||||
|
||||
Name: libpaper
|
||||
Version: ${libpaper.version}
|
||||
Description: ${libpaper.meta.description}
|
||||
Libs: -L\''${libdir} -lpaper
|
||||
Cflags: -I\''${includedir}
|
||||
EOF
|
||||
|
||||
export PKG_CONFIG_PATH="$PWD:$PKG_CONFIG_PATH"
|
||||
|
||||
popd
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CONFIGURE_OPTIONS=--with-GTK"
|
||||
"CONFIGURE_OPTIONS+=--prefix=$(out)"
|
||||
"compile.shared"
|
||||
];
|
||||
|
||||
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
make tedPackage/makefile
|
||||
pushd tedPackage
|
||||
substituteInPlace makefile --replace /usr ""
|
||||
make PKGDESTDIR=$out datadir
|
||||
popd
|
||||
|
||||
pushd $out/share/Ted/examples
|
||||
for f in rtf2*.sh
|
||||
do
|
||||
makeWrapper "$PWD/$f" "$out/bin/$f" --prefix PATH : $out/bin:${lib.makeBinPath [ ghostscript ]}
|
||||
done
|
||||
popd
|
||||
|
||||
cp -v Ted/Ted $out/bin
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
buildInputs = [
|
||||
zlib
|
||||
pcre
|
||||
libx11
|
||||
libice
|
||||
libsm
|
||||
libxpm
|
||||
libjpeg
|
||||
libtiff
|
||||
libpng
|
||||
gtk2-x11
|
||||
libpaper
|
||||
libxft
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Easy rich text processor";
|
||||
longDescription = ''
|
||||
Ted is a text processor running under X Windows on Unix/Linux systems.
|
||||
Ted was developed as a standard easy light weight word processor, having
|
||||
the role of Wordpad on MS-Windows. Since then, Ted has evolved to a real
|
||||
word processor. It still has the same easy appearance and the same speed
|
||||
as the original. The possibility to type a letter, a note or a report
|
||||
with a simple light weight program on a Unix/Linux machine is clearly
|
||||
missing. Ted was made to make it possible to edit rich text documents on
|
||||
Unix/Linux in a wysiwyg way. RTF files from Ted are fully compatible with
|
||||
MS-Word. Additionally, Ted also is an RTF to PostScript and an RTF to
|
||||
Acrobat PDF converter.
|
||||
'';
|
||||
homepage = "https://ftp.nluug.nl/pub/editors/ted/";
|
||||
license = lib.licenses.gpl2Only;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ obadz ];
|
||||
};
|
||||
}
|
||||
@@ -2171,6 +2171,7 @@ mapAliases {
|
||||
teamspeak3 = throw "'teamspeak3' has been removed as it depended on qt5 webengine which is EOL"; # Added 2026-04-25
|
||||
teamspeak5_client = throw "'teamspeak5_client' has been renamed to/replaced by 'teamspeak6-client'"; # Converted to throw 2025-10-27
|
||||
teamspeak_client = throw "'teamspeak_client' has been renamed to/replaced by 'teamspeak3'"; # Converted to throw 2025-10-27
|
||||
ted = throw "'ted' has been removed as it is unmaintained and depends on pcre, which is deprecated"; # Added 2026-06-17
|
||||
tegaki-zinnia-japanese = throw "'tegaki-zinnia-japanese' has been removed due to lack of maintenance"; # Added 2025-09-10
|
||||
telepathy-haze = throw "'telepathy-haze' has been removed due to being unmaintained and broken since 2023"; # Added 2025-11-04
|
||||
teleport_16 = throw "teleport 16 has been removed as it is EOL. Please upgrade to Teleport 17 or later"; # Added 2025-11-10
|
||||
|
||||
Reference in New Issue
Block a user