2017-07-28 22:17:18 +02:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, flex, bison, texinfo, help2man, m4 }:
|
2014-04-09 20:42:08 +02:00
|
|
|
|
2017-07-30 09:46:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-04-09 20:42:08 +02:00
|
|
|
name = "flex-2.5.35";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-28 22:17:18 +02:00
|
|
|
url = https://github.com/westes/flex/archive/flex-2-5-35.tar.gz;
|
|
|
|
sha256 = "0wh06nix8bd4w1aq4k2fbbkdq5i30a9lxz3xczf3ff28yy0kfwzm";
|
2014-04-09 20:42:08 +02:00
|
|
|
};
|
|
|
|
|
2017-07-28 22:17:18 +02:00
|
|
|
nativeBuildInputs = [ flex bison texinfo help2man autoreconfHook ];
|
2014-04-09 20:42:08 +02:00
|
|
|
|
2017-08-14 22:39:03 +02:00
|
|
|
propagatedBuildInputs = [ m4 ];
|
2014-04-09 20:42:08 +02:00
|
|
|
|
2018-07-23 23:35:23 +02:00
|
|
|
preConfigure = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
2014-04-09 20:42:08 +02:00
|
|
|
|
|
|
|
meta = {
|
2014-11-03 12:09:48 +01:00
|
|
|
branch = "2.5.35";
|
2014-04-09 20:42:08 +02:00
|
|
|
homepage = http://flex.sourceforge.net/;
|
|
|
|
description = "A fast lexical analyser generator";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-04-09 20:42:08 +02:00
|
|
|
};
|
|
|
|
}
|