Add a tiny patch (already upstream) that fixes this build error: <flex>/lib/libfl.so: undefined reference to `yylex'
The python wrapper discards derivations that lack the 'pythonPath' attribute, so provide a (dummy) pythonPath attribute to make this work: pythonFull.override { extraLibs = [ thrift ]; }
I set platforms to 'linux' because that's the only thing I have tested.