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";
38 mainProgram = "flexc++";
40 Flexc++ was designed after `flex'. Flexc++ offers a cleaner class design
41 and requires simpler specification files than offered by flex's C++
44 homepage = "https://fbb-git.github.io/flexcpp/";
45 license = licenses.gpl3;
46 platforms = platforms.linux;