blob: 039b5c9a4c4dbdf4beb570defaeb7d5dce3829a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
pkgs: attrs: with pkgs; with attrs; rec {
version = "2024-07-02";
src = fetchFromGitHub {
owner = "google";
repo = "re2";
rev = "${version}";
hash = "sha256-IeANwJlJl45yf8iu/AZNDoiyIvTCZIeK1b74sdCfAIc=";
};
buildInputs = [
abseil-cpp
gbenchmark
gtest
];
# revert weird macOS-specific setting from nixpkgs upstream
cmakeBuildDir = "build";
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DRE2_BUILD_TESTING=ON"
# re2 (as of 2023-06-02) unconditionally targets c++14,
# we patch it in order to make it linkable against abseil-cpp
# "-DCMAKE_CXX_STANDARD=17"
];
}
|