Something went wrong. Try again.
A regular expression library for Zig with PCRE semantics, four engines behind one API, and a JIT for x86-64 and aarch64.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us># SPDX-License-Identifier: MIT
{ description = "";
inputs = { nixpkgs = { url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"; }; };
outputs = { nixpkgs, ... }: let inherit (nixpkgs) lib; linuxSystems = builtins.filter ( system: (lib.systems.elaborate system).isLinux ) lib.systems.flakeExposed; makePackages = system: import nixpkgs { inherit system; # nixpkgs marks radicle-node insecure because traffic for private # repositories is neither encrypted nor authenticated. This # repository is public, so that does not apply to it. config.allowInsecurePredicate = pkg: lib.getName pkg == "radicle-node"; }; forAllSystems = lib.genAttrs linuxSystems; in {
devShells = forAllSystems ( system: let pkgs = makePackages system; in { default = pkgs.mkShell { name = "zregex"; nativeBuildInputs = [ pkgs.git-pages-cli # Pins GitHub Actions references to commit hashes. pkgs.pinact # Runs the aarch64 test suite via `zig build test -fqemu`. pkgs.qemu pkgs.kcov pkgs.radicle-node pkgs.reuse pkgs.zig_0_17 ]; # The oracle builds its own PCRE2 (pinned in build.zig.zon); # these exports exist for -Dpcre2-include/-Dpcre2-lib override # experiments against nixpkgs' build, such as diagnosing # reference version drift. PCRE2_INCLUDE = "${pkgs.pcre2.dev}/include"; PCRE2_LIB = "${pkgs.pcre2.out}/lib"; }; } ); };}