From 7e0bf5efc1f4298b433eff1c6f3d81a1bc401b44 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Thu, 1 Oct 2026 20:02:23 -0500 Subject: [PATCH] flake: Remove GIT_* CMake flags set by package Fixes error in configure when using newer nixpkgs. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index f2e27bc4..eabea8b7 100644 --- a/flake.nix +++ b/flake.nix @@ -76,7 +76,7 @@ buildInputs = oldAttrs.buildInputs ++ extraBuildInputs; nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs; - cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [ + cmakeFlags = (lib.filter (flag: !lib.hasInfix "GIT_" flag) oldAttrs.cmakeFlags) ++ [ (lib.cmakeFeature "GIT_DESC" "nightly") (lib.cmakeFeature "GIT_COMMIT" "nightly") ];