You can replace callPackage with callPackage_i686 to build the 32-bit version of your package on a 64-bit system if you want to test that.