Translations:FAQ/46/en
Appearance
nix-build -E 'with import <nixpkgs> { }; callPackage ./mypackage.nix { }'
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.