nixpkgs/pkgs/by-name/te/tecla/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
718 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "tecla";
version = "1.6.3";
src = fetchurl {
url = "https://www.astro.caltech.edu/~mcs/tecla/libtecla-${version}.tar.gz";
sha256 = "06pfq5wa8d25i9bdjkp4xhms5101dsrbg82riz7rz1a0a32pqxgj";
};
2021-02-28 16:08:47 +00:00
postPatch = ''
substituteInPlace install-sh \
--replace "stripprog=" "stripprog=\$STRIP # "
'';
2023-11-01 00:15:17 +00:00
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
meta = {
description = "Command-line editing library";
homepage = "https://www.astro.caltech.edu/~mcs/tecla/";
license = "as-is";
mainProgram = "enhance";
platforms = lib.platforms.unix;
};
}