Unverified Commit 04b1c0bf authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

{airwin2rack,vaporizer2}: fix compatibility with JUCE 8.0.11 (#468894)

parents 02044fa2 1523e36f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -49,8 +49,8 @@ let
  clapJuceExtensions = fetchFromGitHub {
    owner = "free-audio";
    repo = "clap-juce-extensions";
    rev = "4f33b4930b6af806018c009f0f24b3a50808af99";
    hash = "sha256-M+T7ll3Ap6VIP5ub+kfEKwT2RW2IxxY4wUPRQKFIotk=";
    rev = "645ed2fd0949d36639e3d63333f26136df6df769";
    hash = "sha256-Lx88nyEFjPLA5yh8rrqBdyZIxe/j0FgIHoyKcbjuuI4=";
    fetchSubmodules = true;
  };

+16 −5
Original line number Diff line number Diff line
@@ -30,6 +30,15 @@ stdenv.mkDerivation (finalAttrs: {
    fetchSubmodules = true;
  };

  postPatch = ''
    # LTO needs special setup on Linux
    substituteInPlace CMakeLists.txt \
      --replace-fail 'juce::juce_recommended_lto_flags' '# Not forcing LTO'

    rm -rf clap-juce-extensions
    ln -s ${finalAttrs.passthru.clapJuceExtensions} clap-juce-extensions
  '';

  strictDeps = true;

  nativeBuildInputs = [
@@ -56,11 +65,13 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.cmakeFeature "USE_SYSTEM_JUCE" "ON")
  ];

  # LTO needs special setup on Linux
  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail 'juce::juce_recommended_lto_flags' '# Not forcing LTO'
  '';
  passthru.clapJuceExtensions = fetchFromGitHub {
    owner = "free-audio";
    repo = "clap-juce-extensions";
    rev = "645ed2fd0949d36639e3d63333f26136df6df769";
    hash = "sha256-Lx88nyEFjPLA5yh8rrqBdyZIxe/j0FgIHoyKcbjuuI4=";
    fetchSubmodules = true;
  };

  meta = {
    description = "Wavetable synthesizer";