From 4d01fc544b7d4313ebd9758a3dc83630f39ab064 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sat, 15 Nov 2025 17:06:18 -0500 Subject: [PATCH] llama-cpp: remove git build dependency `git` is used in upstream build system to determine the package version from git history depth. We are not running from a git checkout, so `git` is useless. (We handle version calculation during `src` preparation.) Moreover, having `git` in the build scope results in versions captured in `cmake` files as `unknown` / `dirty`. --- pkgs/by-name/ll/llama-cpp/package.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/by-name/ll/llama-cpp/package.nix b/pkgs/by-name/ll/llama-cpp/package.nix index 975e361a58eb..1c34821e632b 100644 --- a/pkgs/by-name/ll/llama-cpp/package.nix +++ b/pkgs/by-name/ll/llama-cpp/package.nix @@ -36,7 +36,6 @@ vulkan-headers, vulkan-loader, ninja, - git, }: let @@ -92,7 +91,6 @@ effectiveStdenv.mkDerivation (finalAttrs: { cmake ninja pkg-config - git ] ++ optionals cudaSupport [ cudaPackages.cuda_nvcc