Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
945 B
Nix
52 lines
945 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://laurikari.net/tre/";
|
|
changelog = "https://github.com/laurikari/tre/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.bsd2;
|
|
mainProgram = "agrep";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|