Files

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

52 lines
945 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
gettext,
libiconv,
libtool,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tre";
version = "0.9.0";
src = fetchFromGitHub {
owner = "laurikari";
repo = "tre";
tag = "v${finalAttrs.version}";
hash = "sha256-5O8yqzv+SR8x0X7GtC2Pjo94gp0799M2Va8wJ4EKyf8=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
autoconf
automake
gettext # autopoint
libtool
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
preConfigure = ''
./utils/autogen.sh
'';
meta = {
description = "Lightweight and robust POSIX compliant regexp matching library";
homepage = "https://laurikari.net/tre/";
changelog = "https://github.com/laurikari/tre/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd2;
mainProgram = "agrep";
platforms = lib.platforms.unix;
};
})