purePackages.glpk: fix build

Add gmp.dev to the include path to help glpk find gmp.h.

https://github.com/NixOS/nixpkgs/issues/18209
This commit is contained in:
Joachim Fasting 2016-09-10 17:36:59 +02:00
parent c6460fb0cb
commit 16769a6b4a
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
glpkWithExtras = lib.overrideDerivation glpk (attrs: {
propagatedNativeBuildInputs = [ gmp libtool libmysql libiodbc ];
CPPFLAGS = "-I${gmp.dev}/include";
preConfigure = ''
substituteInPlace configure \
--replace /usr/include/mysql ${lib.getDev libmysql}/include/mysql