libdjinterop: dont hardcode versions when patching CMakeLists.txt

This commit is contained in:
Anton Tetov Johansson
2026-08-17 15:00:08 +02:00
parent d308b9017a
commit c8d6e7790c
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "VERSION 0.27.2" "VERSION 0.27.1"
--replace-fail "VERSION 0.27.2" "VERSION ${finalAttrs.version}"
'';
nativeBuildInputs = [

View File

@@ -63,7 +63,7 @@ stdenv.mkDerivation (finalAttrs: {
# Should be removed when bumping to 2.6.x
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-warn "LIBDJINTEROP_VERSION 0.24.3" "LIBDJINTEROP_VERSION 0.27.1"
--replace-warn "LIBDJINTEROP_VERSION 0.24.3" "LIBDJINTEROP_VERSION ${libdjinterop.version}"
'';
nativeBuildInputs = [