2023-01-20 10:41:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-01-20 10:41:00 +00:00
|
|
|
pname = "oniguruma";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "6.9.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# Note: do not use fetchpatch or fetchFromGitHub to keep this package available in __bootPackages
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kkos/oniguruma/releases/download/v${version}/onig-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-KM1iwUZGI8eRBWX7HMqqAQSy/osSvNZG6B9ztHU1IT4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
outputs = [ "dev" "lib" "out" ];
|
|
|
|
outputBin = "dev"; # onig-config
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2021-10-28 06:52:43 +00:00
|
|
|
configureFlags = [ "--enable-posix-api=yes" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/kkos/oniguruma";
|
|
|
|
description = "Regular expressions library";
|
|
|
|
license = licenses.bsd2;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ artturin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|