anchor.diff:      homepage = http://www.positech.co.uk/gratuitousspacebattles/index.html;
       license = [ "unfree" ];
       maintainers = with stdenv.lib.maintainers; [ jcumming ];
  -    platforms = [ "x86_64-linux"] ;
  +    platforms = [ "x86_64-linux" "i686-linux" ] ;
     };
   
   }
  
positive.code:     ensureDir $out/libexec/positech/GSB/
      ensureDir $out/bin
  
      patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath $libPath ./GSB.bin.x86_64
  
      cp -r * $out/libexec/positech/GSB/
      rm -rf $out/libexec/positech/GSB/lib64/
  
      #makeWrapper doesn't do cd. :(
  
      cat > $out/bin/GSB << EOF
      #!/bin/sh
      cd $out/libexec/positech/GSB
      exec ./GSB.bin.x86_64
      EOF
      chmod +x $out/bin/GSB
    '';
  
negative.code:      sha256 = "12jsz9v55w9zxwiz4kbm6phkv60q3c2kyv5imsls13385pzwcs8i";
    };
  
    arch = if stdenv.system == "i686-linux" then "x86" else "x86_64";
  
    phases = "unpackPhase installPhase";
  
    # XXX: stdenv.lib.makeLibraryPath doesn't pick up /lib64
  