10 stdenv.mkDerivation rec {
12 version = "unstable-2020-04-13";
14 src = fetchFromGitHub {
17 rev = "a7eb4bb2151c00cc080613a770d37560f62a285c";
18 sha256 = "sha256-Y96OFpBNrD3vrKoEZ4KdJuI1Q4RmYANsu7H3ZzfaA6g=";
25 sourceRoot = "${src.name}/src";
27 nativeBuildInputs = [ bison cmake flex perl ];
32 install -Dm555 -t $out/bin ast/astgen elkhound/elkhound
33 for d in ast elkhound smbase; do
34 install -Dm444 -t $out/lib $d/*.a
35 install -Dm444 -t $out/include/$d $src/src/$d/*.h
37 install -Dm444 -t $out/share/doc/${pname} $src/src/elkhound/*.txt
43 description = "A parser generator which emits GLR parsers, either in OCaml or C++";
44 homepage = "https://scottmcpeak.com/elkhound/";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ peterhoeg ];
47 # possibly works on Darwin
48 platforms = platforms.linux;