at 23.11-beta 28 lines 718 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "tecla"; 5 version = "1.6.3"; 6 7 src = fetchurl { 8 url = "https://www.astro.caltech.edu/~mcs/tecla/libtecla-${version}.tar.gz"; 9 sha256 = "06pfq5wa8d25i9bdjkp4xhms5101dsrbg82riz7rz1a0a32pqxgj"; 10 }; 11 12 postPatch = '' 13 substituteInPlace install-sh \ 14 --replace "stripprog=" "stripprog=\$STRIP # " 15 ''; 16 17 env = lib.optionalAttrs stdenv.cc.isClang { 18 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 19 }; 20 21 meta = { 22 description = "Command-line editing library"; 23 homepage = "https://www.astro.caltech.edu/~mcs/tecla/"; 24 license = "as-is"; 25 mainProgram = "enhance"; 26 platforms = lib.platforms.unix; 27 }; 28}