| Well in this case I
am the
user. And I don't want to fill this in for every different server I
might have. My suggestion was to make -march=native pure, by expanding it on the system configuring itself at nix _expression_ evaluation time: $ echo "" | gcc -O3 -march=native -mtune=native -v -E - 2>&1 |grep cc1 |sed -r 's/.*? - -(.*)$/-\1/' -march=corei7 -mcx16 -msahf -mno-movbe -maes -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=generic -O3 So if I'd say: nixpkgs.config.servers.http.nginx.optimize_cflags = true; The server building the package would run above command and add these to CFLAGS, which in turn become part of the hash.
|
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev


