Merge pull request #145781 from SuperSandro2000/flex

authored by

Sandro and committed by
GitHub
9e5af7b6 a627a120

-36
-36
pkgs/development/tools/parsing/flex/2.6.1.nix
··· 1 - { lib, stdenv, fetchurl, bison, m4 }: 2 - 3 - stdenv.mkDerivation { 4 - name = "flex-2.6.1"; 5 - 6 - src = fetchurl { 7 - url = "https://github.com/westes/flex/releases/download/v2.6.1/flex-2.6.1.tar.gz"; 8 - sha256 = "0fy14c35yz2m1n1m4f02by3501fn0cca37zn7jp8lpp4b3kgjhrw"; 9 - }; 10 - 11 - postPatch = '' 12 - patchShebangs tests 13 - '' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' 14 - substituteInPlace Makefile.in --replace "tests" " "; 15 - ''; 16 - 17 - buildInputs = [ bison ]; 18 - 19 - propagatedBuildInputs = [ m4 ]; 20 - 21 - preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' 22 - ac_cv_func_malloc_0_nonnull=yes 23 - ac_cv_func_realloc_0_nonnull=yes 24 - ''; 25 - 26 - postConfigure = lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) '' 27 - sed -i Makefile -e 's/-no-undefined//;' 28 - ''; 29 - 30 - meta = with lib; { 31 - homepage = "https://github.com/westes/flex"; 32 - description = "A fast lexical analyser generator"; 33 - license = licenses.bsd2; 34 - platforms = platforms.unix; 35 - }; 36 - }
···