Skip to content

Instantly share code, notes, and snippets.

@matthiasbeyer
Created February 10, 2017 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiasbeyer/1b44d6ba04c7e0b0e7c035f70c87bdeb to your computer and use it in GitHub Desktop.
Save matthiasbeyer/1b44d6ba04c7e0b0e7c035f70c87bdeb to your computer and use it in GitHub Desktop.
optimizeForThisHost = pkg:
pkgs.lib.overrideDerivation pkg (old: {
CFLAGS = "${old.CFLAGS} -fPIC -O3 -march=native";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment