nixcfg/overlays/unstable/default.nix
Harald Hoyer d7b2111476 feat(overlays): override claude-code via local package.nix
Pin claude-code to the manifest-based definition under
overlays/unstable/claude-code/ instead of inheriting it from the
unstable channel, so the version can be controlled locally.
2026-05-30 18:11:05 +02:00

57 lines
1.7 KiB
Nix

{ channels, ... }:
final: prev: {
inherit (channels.unstable)
gemini-cli
opencode
tailscale
mistral-vibe
qwen-code
litellm # 25.11's 1.75.5 has a /v1/embeddings "Stream consumed" bug
# llama-cpp-rocm
# open-webui
# vscode
# nodejs_20
;
claude-code = channels.unstable.callPackage ./claude-code/package.nix { };
# Tuned for Strix Halo (Ryzen AI Max+ 395 / Radeon 8060S, gfx1151).
llama-cpp-rocm =
(channels.unstable.llama-cpp.override {
rocmSupport = true;
rocmGpuTargets = [ "gfx1151" ];
}).overrideAttrs
(prevAttrs: {
version = "9264";
src = final.fetchFromGitHub {
owner = "ggml-org";
repo = "llama.cpp";
tag = "b9264";
hash = "sha256-LA4SgE20Dvz1g3degdIx4CYfYhVNEIQM5Q/5rDT/icg=";
leaveDotGit = true;
postFetch = ''
git -C "$out" rev-parse --short HEAD > $out/COMMIT
find "$out" -name .git -print0 | xargs -0 rm -rf
'';
};
npmDepsHash = "sha256-Iyg8FpcTKf2UYHuK7mA3cTAqVaLcQPcS0YCa5Qf01Gc=";
npmRoot = "tools/ui";
});
geekbench_6 = channels.unstable.geekbench_6.overrideAttrs (prevAttrs: rec {
version = "6.7.1";
src = prev.fetchurl (
{
"x86_64-linux" = {
url = "https://cdn.geekbench.com/Geekbench-${version}-Linux.tar.gz";
hash = "sha256-Ddypd9622dtL2GZIX5QI5y4oadDeoHN7GNS/5HKFis4=";
};
"aarch64-linux" = {
url = "https://cdn.geekbench.com/Geekbench-${version}-LinuxARMPreview.tar.gz";
hash = "sha256-blmsuD5t6jZx4uKVNl/DfED90oDNvd1QrPJIkQ4UoOM=";
};
}
.${prev.stdenv.system} or (throw "unsupported system ${prev.stdenv.hostPlatform.system}")
);
});
}