From 16769a6b4a013862f4979d6ef7eec8503aa14289 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 10 Sep 2016 17:36:59 +0200 Subject: [PATCH] purePackages.glpk: fix build Add gmp.dev to the include path to help glpk find gmp.h. https://github.com/NixOS/nixpkgs/issues/18209 --- pkgs/development/pure-modules/glpk/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/pure-modules/glpk/default.nix b/pkgs/development/pure-modules/glpk/default.nix index af13e8566324..452cf51e6347 100644 --- a/pkgs/development/pure-modules/glpk/default.nix +++ b/pkgs/development/pure-modules/glpk/default.nix @@ -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