diff options
author | Artturi <Artturin@artturin.com> | 2021-11-19 03:20:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 03:20:45 +0200 |
commit | 5a26cb7b3fefecdf782cee124bb9d11d6de5f6c2 (patch) | |
tree | a28d9581d08c480bf77dea6c8a29b56dbfdd7481 | |
parent | e8659f7bf6b850e00c23d88901a028d0b482c263 (diff) | |
parent | 76c1bb81060673f9c2e6991a95f85aa0840758e3 (diff) |
Merge pull request #146386 from Mic92/hyperscan
-rw-r--r-- | pkgs/development/libraries/hyperscan/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/hyperscan/default.nix b/pkgs/development/libraries/hyperscan/default.nix index 4093578156a61..10a53ff1d98f6 100644 --- a/pkgs/development/libraries/hyperscan/default.nix +++ b/pkgs/development/libraries/hyperscan/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, cmake, ragel, python3 -, coreutils, gnused, util-linux +, coreutils, gnused, util-linux, fetchpatch , boost , withStatic ? false # build only shared libs by default, build static+shared if true }: @@ -37,6 +37,14 @@ stdenv.mkDerivation rec { ++ lib.optional (withStatic) "-DBUILD_STATIC_AND_SHARED=ON" ++ lib.optional (!withStatic) "-DBUILD_SHARED_LIBS=ON"; + patches = [ + (fetchpatch { + # part of https://github.com/intel/hyperscan/pull/336 + url = "https://github.com/intel/hyperscan/commit/e2c4010b1fc1272cab816ba543940b3586e68a0c.patch"; + sha256 = "sha256-doVNwROL6MTcgOW8jBwGTnxe0zvxjawiob/g6AvXLak="; + }) + ]; + postPatch = '' sed -i '/examples/d' CMakeLists.txt substituteInPlace libhs.pc.in \ |