2022-12-08 18:46:54 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook }:
|
2012-12-01 20:28:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-12-08 18:46:54 +00:00
|
|
|
pname = "oniguruma";
|
2022-06-16 12:23:03 +00:00
|
|
|
version = "6.9.8";
|
2014-09-22 00:40:19 +00:00
|
|
|
|
2022-12-08 18:46:54 +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=";
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
2014-09-22 00:40:19 +00:00
|
|
|
|
2022-12-08 18:46:54 +00:00
|
|
|
outputs = [ "dev" "lib" "out" ];
|
|
|
|
outputBin = "dev"; # onig-config
|
|
|
|
|
2020-05-29 03:14:19 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2021-04-25 10:00:49 +00:00
|
|
|
configureFlags = [ "--enable-posix-api=yes" ];
|
2017-09-28 11:53:18 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/kkos/oniguruma";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Regular expressions library";
|
2018-04-23 22:28:54 +00:00
|
|
|
license = licenses.bsd2;
|
2022-12-08 18:29:44 +00:00
|
|
|
maintainers = with maintainers; [ artturin ];
|
2018-04-23 22:28:54 +00:00
|
|
|
platforms = platforms.unix;
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
}
|