anchor.diff:  
     enableParallelBuilding = true;
   
  -  meta = with stdenv.lib; {
  +  meta = with lib; {
       description = "A CAS for polynomial computations";
  -    maintainers = with maintainers; [ raskin ];
  +    maintainers = with maintainers; [ raskin timokau ];
  +    # 32 bit x86 fails with some link error: `undefined reference to `__divmoddi4@GCC_7.0.0'`
       platforms = subtractLists platforms.i686 platforms.linux;
       license = licenses.gpl3; # Or GPLv2 at your option - but not GPLv4
       homepage = http://www.singular.uni-kl.de;
  
positive.code:       -i '{}' ';'
    '';
  
    hardeningDisable = stdenv.lib.optional stdenv.isi686 "stackprotector";
  
    # The Makefile actually defaults to `make install` anyway
    buildPhase = "true;";
  
    installPhase = ''
      mkdir -p "$out"
  
negative.code:   # simple test to make sure singular starts and finds its libraries
    doInstallCheck = true;
    installCheckPhase = ''
      "$out/bin/Singular" -c 'LIB "freegb.lib"; exit;'
      if [ $? -ne 0 ]; then
          echo >&2 "Error loading the freegb library in Singular."
          exit 1
  