Compare commits

...

2 Commits

Author SHA1 Message Date
e359ff0ffc
fish: add gcc-native command 2024-10-04 15:31:54 -04:00
08d288b48e
gpt4all: update 2024-10-04 14:40:57 -04:00
2 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,8 @@ in
pbpaste = "${pkgs.wl-clipboard}/bin/wl-paste";
nix-cleanup = "doas nix-collect-garbage --delete-older-than 1d && doas nix-store --optimise && doas nix-store --gc";
gcc-native = "${pkgs.gcc}/bin/gcc -Q --help=target -mtune=native -march=native | ${pkgs.gnugrep}/bin/grep -E '(mtune|march)=' | ${pkgs.gnugrep}/bin/grep -v 'Known valid arguments' | ${pkgs.gnused}/bin/sed -E \"s/[[:space:]]+//g\"";
};
shellInit = ''

View File

@ -50,7 +50,7 @@ let
in
{
NIX_CFLAGS_COMPILE = "${oldflags} ${newflags}";
stdenv = pkgs.clangStdenv;
stdenv = pkgs.clang18Stdenv;
}
);
@ -70,7 +70,7 @@ let
owner = "nomic-ai";
repo = "gpt4all";
rev = "HEAD";
sha256 = "vzAfWLyljR0Cg6pCeeyQJZNeOJh5xOILlbJnwDWu62o=";
sha256 = "7pUgCZJC5goMvpUNBQ3ssmwdWt3TnaQQ7RF98VdYzM8=";
};
patches = old.patches ++ [
@ -83,7 +83,6 @@ let
"-Ofast"
"-march=native"
"-mtune=native"
"-fno-protect-parens"
"-fno-finite-math-only" # https://github.com/ggerganov/llama.cpp/pull/7154#issuecomment-2143844461
]
);