anchor.diff:      bash # needed for the build
       perl # needed for the build
       python # needed for the build
  -    gfortran # needed to build giac, openblas
  +    gfortran6 # needed to build giac, openblas
       autoreconfHook # needed to configure sage with prefix
       gettext # needed to build the singular spkg
  +    which # needed in configure of mpir
  +    texinfo # needed to build maxima
  +  ] ++ stdenv.lib.optionals(buildDocs) [
       hevea # needed to build the docs of the giac spkg
  -    which # needed in configure of mpir
  -    # needed to build the docs of the giac spkg
  -    texinfo # needed to build maxima
       (texlive.combine { inherit (texlive)
         scheme-basic
         collection-pstricks # needed by giac
  
positive.code:     rm -f "$out/sage-root/config.status"
      rm -f "$out/sage-root/build/make/Makefile-auto"
      rm -f "$out/sage-home/.sage/gap/libgap-workspace-"*
      # Make sure all shebangs are properly patched
      bash $patchSageShebangs $out
    '';
  
negative.code:     })
    ];
  
    nativeBuildInputs = [ gfortran6 perl which ];
  
    patches = [
      # fix usages of /bin/rm
  