From bf49c616eea78a92ce9f7ae88774f6f427d1fae4 Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Wed, 10 Jan 2018 17:49:06 +0100 Subject: [PATCH] giac: fix build giac was broken somewhere between 310ad4 and b33b4a, see https://hydra.nixos.org/build/67137469 libgfortran.so.3 was not found --- pkgs/applications/science/math/giac/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/giac/default.nix b/pkgs/applications/science/math/giac/default.nix index 4ef00d56f18..b2b052bdb15 100644 --- a/pkgs/applications/science/math/giac/default.nix +++ b/pkgs/applications/science/math/giac/default.nix @@ -29,7 +29,10 @@ stdenv.mkDerivation rec { # perl is only needed for patchShebangs fixup. buildInputs = [ gmp mpfr pari ntl gsl blas mpfi liblapackWithAtlas - readline gettext libpng libao gfortran perl + readline gettext libpng libao perl + # gfortran.cc default output contains static libraries compiled without -fPIC + # we want libgfortran.so.3 instead + (stdenv.lib.getLib gfortran.cc) ] ++ stdenv.lib.optionals enableGUI [ mesa fltk xorg.libX11 ];