at 24.11-pre 38 lines 877 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5}: 6 7stdenv.mkDerivation rec { 8 pname = "ctre"; 9 version = "3.9.0"; 10 11 src = fetchFromGitHub { 12 owner = "hanickadot"; 13 repo = "compile-time-regular-expressions"; 14 rev = "v${version}"; 15 hash = "sha256-Fmx8eKo4UHSYQa5RL70VmaogQj+ILVA1gfpaVE8+MlQ="; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 20 postPatch = '' 21 substituteInPlace packaging/pkgconfig.pc.in \ 22 --replace "\''${prefix}/" "" 23 ''; 24 25 dontBuild = true; 26 27 meta = with lib; { 28 description = "Fast compile-time regular expressions library"; 29 longDescription = '' 30 Fast compile-time regular expressions with support for 31 matching/searching/capturing during compile-time or runtime. 32 ''; 33 license = licenses.asl20; 34 homepage = "https://compile-time.re"; 35 maintainers = with maintainers; [ azahi ]; 36 platforms = platforms.all; 37 }; 38}