mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
52 lines
951 B
Nix
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;
|
|
};
|
|
})
|