Packaging/32bit Applications: Difference between revisions
imported>Makefu irc ->wiki |
imported>Makefu No edit summary |
||
Line 1: | Line 1: | ||
== Building software with 32bit <tt>gcc</tt> == | == Building software with 32bit <tt>gcc</tt> == | ||
'''Question''': | '''Question''': I'm invoking gcc with -m32 and it fails to find <code>`gnu/stubs-32.h`</code><br/> | ||
'''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 | '''Answer (clever)''': you want to use <code>pkgsi686Linux</code> instead of pkgs, so things like <code>pkgsi686Linux.stdenv.mkDerivation </code> or <code>pkgsi686Linux.callPackage</code> then nix will give you 32bit everything |
Revision as of 15:51, 19 March 2018
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