Unverified Commit 1af3170e authored by Cosima Neidahl's avatar Cosima Neidahl Committed by GitHub
Browse files

mt32emu-smf2wav: fix build with cmake4 (#455586)

parents deb6461b 11bc0ce8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: {

  postPatch = ''
    sed -i -e '/add_subdirectory(mt32emu)/d' CMakeLists.txt
    # This directly resolves the 'The dependency target "mt32emu" ... does not exist' error.
    sed -i -e '/add_dependencies(mt32emu-smf2wav mt32emu)/d' CMakeLists.txt

    substituteInPlace {./,mt32emu_smf2wav/,mt32emu_smf2wav/libsmf/}CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8.12)" "cmake_minimum_required(VERSION 3.10)"
  '';

  nativeBuildInputs = [