2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, flex, bison, texinfo, help2man, m4 }:
|
2014-04-09 18:42:08 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-04-09 18:42:08 +00:00
|
|
|
name = "flex-2.5.35";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://github.com/westes/flex/archive/flex-2-5-35.tar.gz";
|
2017-07-28 20:17:18 +00:00
|
|
|
sha256 = "0wh06nix8bd4w1aq4k2fbbkdq5i30a9lxz3xczf3ff28yy0kfwzm";
|
2014-04-09 18:42:08 +00:00
|
|
|
};
|
|
|
|
|
2018-08-09 23:11:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
2017-07-28 20:17:18 +00:00
|
|
|
nativeBuildInputs = [ flex bison texinfo help2man autoreconfHook ];
|
2014-04-09 18:42:08 +00:00
|
|
|
|
2017-08-14 20:39:03 +00:00
|
|
|
propagatedBuildInputs = [ m4 ];
|
2014-04-09 18:42:08 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
preConfigure = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
2018-07-23 21:35:23 +00:00
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
2014-04-09 18:42:08 +00:00
|
|
|
|
2018-08-09 23:11:57 +00:00
|
|
|
doCheck = false; # fails 2 out of 46 tests
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-03 11:09:48 +00:00
|
|
|
branch = "2.5.35";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://flex.sourceforge.net/";
|
2014-04-09 18:42:08 +00:00
|
|
|
description = "A fast lexical analyser generator";
|
2018-08-16 19:51:07 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
2014-04-09 18:42:08 +00:00
|
|
|
};
|
|
|
|
}
|