From a16c31244b904cb0ee152eca2c0c01c3be0fdc7f Mon Sep 17 00:00:00 2001 From: xeji <36407913+xeji@users.noreply.github.com> Date: Mon, 21 May 2018 17:44:15 +0200 Subject: [PATCH] faust2: fix build with llvm 5.0.2 (#40672) build was broken by llvm: 5.0.1 -> 5.0.2 (#39979) --- pkgs/applications/audio/faust/faust2.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/audio/faust/faust2.nix b/pkgs/applications/audio/faust/faust2.nix index 877bd26a5c1bf7..16d373d22174d0 100644 --- a/pkgs/applications/audio/faust/faust2.nix +++ b/pkgs/applications/audio/faust/faust2.nix @@ -73,6 +73,13 @@ let sed '52iLLVM_VERSION=${stdenv.lib.getVersion llvm}' -i compiler/Makefile.unix ''; + postPatch = '' + # fix build with llvm 5.0.2 by adding it to the list of known versions + # TODO: check if still needed on next update + substituteInPlace compiler/Makefile.unix \ + --replace "5.0.0 5.0.1" "5.0.0 5.0.1 5.0.2" + ''; + # Remove most faust2appl scripts since they won't run properly # without additional paths setup. See faust.wrap, # faust.wrapWithBuildEnv. @@ -193,6 +200,7 @@ let propagatedBuildInputs = [ faust ] ++ propagatedBuildInputs; + postFixup = '' # export parts of the build environment