Packaging/32bit Applications

From NixOS Wiki
Revision as of 16:27, 19 March 2018 by imported>Makefu (Makefu moved page Cross Compiling to Packaging/32bit Applications: not really cross-compiling)

Building software with 32bit gcc

Question: I'm invoking gcc with -m32 and it fails to find `gnu/stubs-32.h`
Answer (clever): you want to use pkgsi686Linux instead of pkgs, so things like pkgsi686Linux.stdenv.mkDerivation or pkgsi686Linux.callPackage then nix will give you 32bit everything[1]