[Nix-dev] CPU optimized packages
Eelco Dolstra
eelco.dolstra at logicblox.com
Thu Feb 7 21:11:56 CET 2013
Hi,
On 07/02/13 19:47, Shea Levy wrote:
>> I get the concepts but I'm very new to the nix language. How would I modify an
>> existing package to use this in my ~/.nixpkgs/config.nix ?
>
> Unfortunately, this isn't currently easy to do, we'd need to add some hooks in
> stdenv to allow adding some custom CFLAGS.
This is actually easy to do in the stdenv branch, since you can say something like:
stdenv.userHook = ''
NIX_CFLAGS_COMPILE+=" -march=corei7"
'';
in ~/.nixpkgs/config.nix.
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
More information about the nix-dev
mailing list