Files
nixpkgs/pkgs/by-name/tr/tre/package.nix
Eric Rodrigues Pires c1939dc1c0 tre: fix homepage
2026-09-26 19:58:28 -03:00

52 lines
951 B
Nix

{
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://github.com/laurikari/tre";
changelog = "https://github.com/laurikari/tre/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd2;
mainProgram = "agrep";
platforms = lib.platforms.unix;
};
})