about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/oniguruma
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/oniguruma')
-rw-r--r--nixpkgs/pkgs/development/libraries/oniguruma/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/oniguruma/default.nix b/nixpkgs/pkgs/development/libraries/oniguruma/default.nix
new file mode 100644
index 000000000000..cf00629e3842
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/oniguruma/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, fetchurl, autoreconfHook }:
+
+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=";
+  };
+
+  outputs = [ "dev" "lib" "out" ];
+  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;
+  };
+}