Merge pull request #242698 from PowerUser64/bespoke-unstable

bespokesynth: update to latest commit

authored by

Weijia Wang and committed by
GitHub
a34a81dd e45dcb6b

+20 -18
+18 -16
pkgs/applications/audio/bespokesynth/default.nix
··· 36 36 , CoreServices 37 37 , CoreAudioKit 38 38 , IOBluetooth 39 + , MetalKit 39 40 # It is not allowed to distribute binaries with the VST2 SDK plugin without a license 40 41 # (the author of Bespoke has such a licence but not Nix). VST3 should work out of the box. 41 42 # Read more in https://github.com/NixOS/nixpkgs/issues/145607 ··· 58 59 in 59 60 stdenv.mkDerivation rec { 60 61 pname = "bespokesynth"; 61 - version = "1.1.0"; 62 + version = "unstable-2023-08-17"; 62 63 63 64 src = fetchFromGitHub { 64 65 owner = "BespokeSynth"; 65 66 repo = pname; 66 - rev = "v${version}"; 67 - sha256 = "sha256-PN0Q6/gI1PeMaF/8EZFGJdLR8JVHQZfWunAhOIQxkHw="; 67 + rev = "c6b1410afefc8b0b9aeb4aa11ad5c32651879c9f"; 68 + hash = "sha256-MLHlHSszD2jEN4/f2jC4vjAidr3gVOSK606qs5bq+Sc="; 68 69 fetchSubmodules = true; 69 70 }; 70 71 71 - postPatch = '' 72 - sed '1i#include <memory>' -i Source/TitleBar.h # gcc12 73 - ''; 74 - 75 72 cmakeBuildType = "Release"; 76 73 77 74 cmakeFlags = lib.optionals enableVST2 [ "-DBESPOKE_VST2_SDK_LOCATION=${vst-sdk}/VST2_SDK" ]; ··· 79 76 nativeBuildInputs = [ python3 makeWrapper cmake pkg-config ninja ]; 80 77 81 78 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ 82 - # List obtained in https://github.com/BespokeSynth/BespokeSynth/blob/main/azure-pipelines.yml 79 + # List obtained from https://github.com/BespokeSynth/BespokeSynth/blob/main/azure-pipelines.yml 83 80 libX11 84 81 libXrandr 85 82 libXinerama ··· 110 107 CoreServices 111 108 CoreAudioKit 112 109 IOBluetooth 110 + MetalKit 113 111 ]; 114 112 115 113 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ ··· 133 131 --prefix PATH : '${lib.makeBinPath [ 134 132 gnome.zenity 135 133 (python3.withPackages (ps: with ps; [ jedi ])) 136 - ]}' \ 137 - --prefix LD_LIBRARY_PATH : '${lib.makeLibraryPath [ 138 - libXrandr 139 - libXinerama 140 - libXcursor 141 - libXScrnSaver 142 134 ]}' 143 135 ''; 144 136 137 + env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-rpath ${lib.makeLibraryPath ([ 138 + libX11 139 + libXrandr 140 + libXinerama 141 + libXext 142 + libXcursor 143 + libXScrnSaver 144 + ])}"; 145 + dontPatchELF = true; # needed or nix will try to optimize the binary by removing "useless" rpath 146 + 145 147 meta = with lib; { 146 148 description = 147 149 "Software modular synth with controllers support, scripting and VST"; 148 - homepage = "https://github.com/awwbees/BespokeSynth"; 150 + homepage = "https://www.bespokesynth.com/"; 149 151 license = with licenses; [ 150 152 gpl3Plus 151 153 ] ++ lib.optional enableVST2 unfree; 152 - maintainers = with maintainers; [ astro tobiasBora OPNA2608 ]; 154 + maintainers = with maintainers; [ astro tobiasBora OPNA2608 PowerUser64 ]; 153 155 mainProgram = "BespokeSynth"; 154 156 platforms = platforms.all; 155 157 };
+2 -2
pkgs/top-level/all-packages.nix
··· 30776 30776 30777 30777 berry = callPackage ../applications/window-managers/berry { }; 30778 30778 30779 - bespokesynth = callPackage ../applications/audio/bespokesynth { 30780 - inherit (darwin.apple_sdk.frameworks) Accelerate Cocoa WebKit CoreServices CoreAudioKit IOBluetooth; 30779 + bespokesynth = darwin.apple_sdk_11_0.callPackage ../applications/audio/bespokesynth { 30780 + inherit (darwin.apple_sdk_11_0.frameworks) Accelerate Cocoa WebKit CoreServices CoreAudioKit IOBluetooth MetalKit; 30781 30781 }; 30782 30782 30783 30783 bespokesynth-with-vst2 = bespokesynth.override {