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/
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to