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:
parent
c6460fb0cb
commit
16769a6b4a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue