flex: 2.6.1 -> 2.6.3

This resolves some warnings and errors introduced in 2.6.x.
This commit is contained in:
Vladimír Čunát 2016-12-30 20:36:03 +01:00
parent ee3fb421b8
commit 6bded45883
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 4 additions and 7 deletions

View file

@ -1,11 +1,12 @@
{ stdenv, fetchurl, bison, m4 }:
stdenv.mkDerivation rec {
name = "flex-2.6.1";
name = "flex-${version}";
version = "2.6.3";
src = fetchurl {
url = "https://github.com/westes/flex/releases/download/v2.6.1/flex-2.6.1.tar.gz";
sha256 = "0fy14c35yz2m1n1m4f02by3501fn0cca37zn7jp8lpp4b3kgjhrw";
url = "https://github.com/westes/flex/releases/download/v${version}/flex-${version}.tar.gz";
sha256 = "1an2cn2z85mkpgqcinh1fhhcd7993qm2lil1yxic8iz76ci79ck8";
};
buildInputs = [ bison ];

View file

@ -13,10 +13,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ flex ];
# Temporary work-around for problems after flex security update:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835542
NIX_CFLAGS_COMPILE = "-Wno-error=sign-compare";
preBuild = ''
makeFlagsArray+=("PREFIX=$out")
makeFlagsArray+=("DESTDIR=$out")