libcaption: 0.7 -> 0.8, fix cmake 4 build issue (#454058)

This commit is contained in:
Yaya
2025-10-21 08:18:35 +00:00
committed by GitHub
+8 -3
View File
@@ -8,16 +8,21 @@
stdenv.mkDerivation (finalAttrs: {
pname = "libcaption";
version = "0.7";
version = "0.8";
src = fetchFromGitHub {
owner = "szatmary";
repo = "libcaption";
tag = finalAttrs.version;
hash = "sha256-OBtxoFJF0cxC+kfSK8TIKIdLkmCh5WOJlI0fejnisJo=";
tag = "v${finalAttrs.version}";
hash = "sha256-9tszEKR30GHoGQ3DE9ejU3yOdtDiZwSZHiIJUPLgOdU=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ re2c ];