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