mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Optimization+Overlays] More recent GCC-GO and faster fastStdenv
This commit is contained in:
parent
3dc95db22e
commit
043ed14890
2 changed files with 24 additions and 0 deletions
|
|
@ -62,6 +62,21 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
nixpkgs.overlays = mkBefore [
|
nixpkgs.overlays = mkBefore [
|
||||||
|
(self: super: {
|
||||||
|
fastStdenv = super.overrideCC super.gccStdenv (super.buildPackages.gcc_latest.overrideAttrs (old:
|
||||||
|
let
|
||||||
|
ccAttrs = cc: cc.overrideAttrs (oldAttrs: {
|
||||||
|
configureFlags = (oldAttrs.configureFlags or []) ++ [ "--with-cpu-64=${generalCfg.cpuArch}" "--with-arch-64=${generalCfg.cpuTune}" ];
|
||||||
|
});
|
||||||
|
ccOverrides = cc: cc.override {
|
||||||
|
reproducibleBuild = false;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
cc = ccOverrides (ccAttrs old.cc);
|
||||||
|
}
|
||||||
|
));
|
||||||
|
})
|
||||||
|
|
||||||
(self: super: {
|
(self: super: {
|
||||||
opensshOptimized = optimizePkg { level = "very-unsafe"; lto = true; } super.openssh;
|
opensshOptimized = optimizePkg { level = "very-unsafe"; lto = true; } super.openssh;
|
||||||
#libxslt = optimizePkg { level = "unsafe"; parallelize = generalCfg.cores; lto = true; } super.libxslt;
|
#libxslt = optimizePkg { level = "unsafe"; parallelize = generalCfg.cores; lto = true; } super.libxslt;
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,15 @@ in
|
||||||
});
|
});
|
||||||
# chromium = self.ungoogled-chromium;
|
# chromium = self.ungoogled-chromium;
|
||||||
|
|
||||||
|
gccgo11 = super.wrapCC (super.gcc11.cc.override {
|
||||||
|
name = "gccgo11";
|
||||||
|
langCC = true;
|
||||||
|
langC = true;
|
||||||
|
langGo = true;
|
||||||
|
profiledCompiler = false;
|
||||||
|
});
|
||||||
|
gccgo = self.gccgo11;
|
||||||
|
|
||||||
xwayland = super.xwayland.overrideAttrs (old: {
|
xwayland = super.xwayland.overrideAttrs (old: {
|
||||||
buildInputs = old.buildInputs or [] ++ [ super.makeWrapper ];
|
buildInputs = old.buildInputs or [] ++ [ super.makeWrapper ];
|
||||||
postInstall = old.postInstall or "" + ''
|
postInstall = old.postInstall or "" + ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue