6 stdenv.mkDerivation (finalAttrs: {
11 url = "https://www.astro.caltech.edu/~mcs/tecla/libtecla-${finalAttrs.version}.tar.gz";
12 hash = "sha256-8nV8xVBAhZ/Pj1mgt7JuAYSiK+zkTtlWikU0pHjB7ho=";
15 outputs = [ "out" "man" ];
18 substituteInPlace install-sh \
19 --replace "stripprog=" "stripprog=\$STRIP # "
22 env = lib.optionalAttrs stdenv.cc.isClang {
23 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
27 homepage = "https://www.astro.caltech.edu/~mcs/tecla/";
28 description = "Command-line editing library";
30 The tecla library provides UNIX and LINUX programs with interactive
31 command line editing facilities, similar to those of the UNIX tcsh
32 shell. In addition to simple command-line editing, it supports recall of
33 previously entered command lines, TAB completion of file names or other
34 tokens, and in-line wild-card expansion of filenames. The internal
35 functions which perform file-name completion and wild-card expansion are
36 also available externally for optional use by programs.
38 In addition, the library includes a path-searching module. This allows an
39 application to provide completion and lookup of files located in UNIX
40 style paths. Although not built into the line editor by default, it can
41 easily be called from custom tab-completion callback functions. This was
42 originally conceived for completing the names of executables and
43 providing a way to look up their locations in the user's PATH environment
44 variable, but it can easily be asked to look up and complete other types
45 of files in any list of directories.
47 Note that special care has been taken to allow the use of this library in
48 threaded programs. The option to enable this is discussed in the
49 Makefile, and specific discussions of thread safety are presented in the
52 changelog = "https://sites.astro.caltech.edu/~mcs/tecla/release.html";
53 license = with lib.licenses; [ mit ];
54 mainProgram = "enhance";
55 maintainers = with lib.maintainers; [ AndersonTorres ];
56 platforms = lib.platforms.unix;