libid3tag: backport patch for CMake 4

This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
parent 5a81bed4a0
commit 1f4843f2e6
+10
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitea,
fetchpatch,
cmake,
gperf,
zlib,
@@ -24,6 +25,15 @@ stdenv.mkDerivation rec {
hash = "sha256-6/49rk7pmIpJRj32WmxC171NtdIOaMNhX8RD7o6Jbzs=";
};
patches = [
# Fix the build with CMake 4.
(fetchpatch {
name = "libid3tag-fix-cmake-4.patch";
url = "https://codeberg.org/tenacityteam/libid3tag/commit/eee94b22508a066f7b9bc1ae05d2d85982e73959.patch";
hash = "sha256-OAdMapNr8qpvXZqNOZ3LUHQ1H79zD1rvzrVksqmz6dU=";
})
];
postPatch = ''
substituteInPlace packaging/id3tag.pc.in \
--replace-fail "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "@CMAKE_INSTALL_FULL_LIBDIR@"