I’m trying to test the effect of -march by compiling Nix packages and benchmarking them.
This is what I’m trying to use:
{ }:
let
pkgs = import <nixpkgs> {
overlays = [
(self: super: {
stdenv = super.stdenvAdapters.impureUseNativeOptimizations super.gcc11Stdenv;
})
];
};
in pkgs.mkShell {
packages = with pkgs; [ zstd ];
}
I get infinite recursion though. What am I doing wrong?