13 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
23 hash = "sha256-SKhNBqZRgeN2cZZ2lv/IsOqaa5LY666OlICewN/iPVA=";
24 fetchSubmodules = true;
38 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
43 patchShebangs scripts tests/scripts
47 "-DHILTI_DEV_PRECOMPILE_HEADERS=OFF"
52 do wrapProgram "$b" --prefix PATH : "${lib.makeBinPath [ bison flex ]}"
57 homepage = "https://github.com/zeek/spicy";
58 description = "C++ parser generator for dissecting protocols & files";
60 Spicy is a parser generator that makes it easy to create robust C++
61 parsers for network protocols, file formats, and more. Spicy is a bit
62 like a "yacc for protocols", but it's much more than that: It's an
63 all-in-one system enabling developers to write attributed grammars that
64 describe both syntax and semantics of an input format using a single,
65 unified language. Think of Spicy as a domain-specific scripting language
66 for all your parsing needs.
68 license = licenses.bsd3;
69 maintainers = with maintainers; [ tobim ];
70 platforms = platforms.unix;