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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "6.9.9";
|
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";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-YBYr07n8b0iG1MegeSX/03QWdzL1Xc6MSRv9nNgYps8=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "onig-config";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|