audacity: unbreak (#429334)

authored by Weijia Wang and committed by GitHub 952beb58 4c9721c7

+23
+5
pkgs/by-name/au/audacity/package.nix
··· 70 70 hash = "sha256-kESKpIke9Xi4A55i3mUu1JkDjp8voBJBixiAK8pUkKA="; 71 71 }; 72 72 73 + patches = [ 74 + # Introduced by https://github.com/Tencent/rapidjson/commit/b1c0c2843fcb2aca9ecc650fc035c57ffc13697c#diff-2f1bcf2729ff7c408adb0c2cc2cfa01602bd5646b05b3e4bc7e46b606035d249R21 75 + ./rapidjson.patch 76 + ]; 77 + 73 78 postPatch = '' 74 79 mkdir src/private 75 80 substituteInPlace scripts/build/macOS/fix_bundle.py \
+18
pkgs/by-name/au/audacity/rapidjson.patch
··· 1 + diff --git a/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake b/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake 2 + index ba95962..66a96a8 100644 3 + --- a/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake 4 + +++ b/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake 5 + @@ -2,8 +2,11 @@ 6 + 7 + if(NOT ${_OPT}use_rapidjson STREQUAL "off") 8 + if(NOT TARGET rapidjson::rapidjson) 9 + - if(TARGET rapidjson) 10 + - add_library( rapidjson::rapidjson ALIAS rapidjson ) 11 + + if(TARGET RapidJSON) 12 + + if(NOT TARGET rapidjson) 13 + + add_library(rapidjson ALIAS RapidJSON) 14 + + endif() 15 + + add_library( rapidjson::rapidjson ALIAS RapidJSON ) 16 + else() 17 + # At least on Arch RapidJSONConfig.cmake does not define a target at all 18 + # so we have to do it ourselves