From 55b74f0caf03d9c28187adf95f27a2891fb41666 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 6 May 2026 08:43:46 +0200 Subject: [PATCH] feat(overlays): pin llama-cpp-rocm to am17an/mtp-clean fork Override the unstable llama-cpp-rocm src to track the am17an/llama.cpp mtp-clean branch (rev 267f8af). Replaces upstream's leaveDotGit-based COMMIT extraction with a direct postFetch write so the source hash is deterministic without a git clone. The fork's webui package-lock differs from upstream, so npmDepsHash is repinned. --- overlays/unstable/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/overlays/unstable/default.nix b/overlays/unstable/default.nix index c3b2561..39884ce 100644 --- a/overlays/unstable/default.nix +++ b/overlays/unstable/default.nix @@ -6,12 +6,25 @@ final: prev: { tailscale # claude-code qwen-code - llama-cpp-rocm + # llama-cpp-rocm # open-webui # vscode # nodejs_20 ; + llama-cpp-rocm = channels.unstable.llama-cpp-rocm.overrideAttrs (_: { + src = prev.fetchFromGitHub { + owner = "am17an"; + repo = "llama.cpp"; + rev = "267f8afe857b7bd1a49e4fde9138ab0f7be36625"; + hash = "sha256-aMN5ur1aRi2OQ+Jc5aYEi5HUVvzmFsXT8y9O/01rUWU="; + postFetch = '' + echo -n "267f8af" > $out/COMMIT + ''; + }; + npmDepsHash = "sha256-k62LIbyY2DXvs7XXbX0lNPiYxuYzeJUyQtS4eA+68f8="; + }); + /* gnome-remote-desktop = channels.unstable.gnome-remote-desktop.overrideAttrs (prevAttrs: { patches = (prevAttrs.patches or [ ]) ++ [