bespokesynth: Use more system dependencies

This commit is contained in:
OPNA2608
2024-12-23 23:12:45 +01:00
parent 5bc6acc80d
commit e8ca293bb3
@@ -12,6 +12,7 @@
alsa-lib,
alsa-tools,
freetype,
jsoncpp,
libusb1,
libX11,
libXrandr,
@@ -73,9 +74,14 @@ stdenv.mkDerivation (finalAttrs: {
cmakeBuildType = "Release";
cmakeFlags = lib.optionals enableVST2 [
(lib.cmakeFeature "BESPOKE_VST2_SDK_LOCATION" "${vst-sdk}/VST2_SDK")
];
cmakeFlags =
[
(lib.cmakeBool "BESPOKE_SYSTEM_PYBIND11" true)
(lib.cmakeBool "BESPOKE_SYSTEM_JSONCPP" true)
]
++ lib.optionals enableVST2 [
(lib.cmakeFeature "BESPOKE_VST2_SDK_LOCATION" "${vst-sdk}/VST2_SDK")
];
strictDeps = true;
@@ -89,7 +95,13 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs =
[
python3 # library
jsoncpp
# library & headers
(python3.withPackages (
ps: with ps; [
pybind11
]
))
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# List obtained from https://github.com/BespokeSynth/BespokeSynth/blob/main/azure-pipelines.yml