core/pkgs/by-name/on/oniguruma/default.nix

37 lines
867 B
Nix
Raw Normal View History

2024-06-30 08:12:46 +00:00
{
lib,
stdenv,
fetchurl,
autoreconfHook,
}:
2024-05-02 00:46:19 +00:00
stdenv.mkDerivation rec {
pname = "oniguruma";
version = "6.9.9";
# 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-YBYr07n8b0iG1MegeSX/03QWdzL1Xc6MSRv9nNgYps8=";
};
2024-06-30 08:12:46 +00:00
outputs = [
"dev"
"lib"
"out"
];
2024-05-02 00:46:19 +00:00
outputBin = "dev"; # onig-config
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [ "--enable-posix-api=yes" ];
meta = with lib; {
homepage = "https://github.com/kkos/oniguruma";
description = "Regular expressions library";
mainProgram = "onig-config";
license = licenses.bsd2;
maintainers = with maintainers; [ artturin ];
platforms = platforms.unix;
};
}