Unverified Commit 11bce875 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

proteus: fix build with CMake 4 (#477538)

parents c12c88b5 b1456fed
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -44,6 +44,14 @@ stdenv.mkDerivation rec {
    libXrandr
    libXrender
  ];

  postPatch = ''
    substituteInPlace modules/libsamplerate/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.1..3.18)" "cmake_minimum_required(VERSION 3.18)"
    substituteInPlace modules/{json,RTNeural}/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)"
  '';

  # JUCE loads most dependencies at runtime:
  runtimeDependencies = map lib.getLib buildInputs;