Skip to content

Instantly share code, notes, and snippets.

@dhess
Created January 17, 2018 09:16
Show Gist options
  • Select an option

  • Save dhess/ec32c05364c73a69b91813d0d4e7e71d to your computer and use it in GitHub Desktop.

Select an option

Save dhess/ec32c05364c73a69b91813d0d4e7e71d to your computer and use it in GitHub Desktop.
{ stdenv
, fetchurl
, pkgconfig
, boost
, cmake
, python
, ragel
}:
stdenv.mkDerivation rec {
name = "hyperscan-${version}";
version = "4.6.0";
src = fetchurl {
url = "https://github.com/intel/hyperscan/archive/v${version}.tar.gz";
sha256 = "05d8zpjcm13lldkzcxafkabllzgv10nrhgfazsrag9l2bqpgryqd";
};
nativeBuildInputs = [
boost
cmake
pkgconfig
python
ragel
];
enableParallelBuilding = true;
cmakeFlags = [
"-DBUILD_AVX512=ON"
"-DBUILD_SHARED_LIBS=ON"
];
meta = with stdenv.lib; {
homepage = https://01.org/hyperscan;
description = "A high-performance multiple regex matching library";
license = with licenses; [ bsd3 bsd2 boost ];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment