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