1 { lib, stdenv, fetchFromGitHub, bobcat, icmake, yodl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 sha256 = "0s25d9jsfsqvm34rwf48cxwz23aq1zja3cqlzfz3z33p29wwazwz";
15 sourceRoot=$(echo */flexc++)
18 buildInputs = [ bobcat ];
19 nativeBuildInputs = [ icmake yodl ];
22 substituteInPlace INSTALL.im --replace /usr $out
37 description = "C++ tool for generating lexical scanners";
39 Flexc++ was designed after `flex'. Flexc++ offers a cleaner class design
40 and requires simpler specification files than offered by flex's C++
43 homepage = "https://fbb-git.github.io/flexcpp/";
44 license = licenses.gpl3;
45 platforms = platforms.linux;