-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
329 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ stdenv | ||
, lib | ||
, fetchFromGitHub | ||
, cmake | ||
, pkg-config | ||
, libX11 | ||
, libXrandr | ||
, libXinerama | ||
, libXext | ||
, libXcursor | ||
, freetype | ||
, alsa-lib | ||
, libjack2 | ||
, Cocoa | ||
, WebKit | ||
, MetalKit | ||
, simd | ||
, DiscRecording | ||
, CoreAudioKit | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "dexed"; | ||
version = "unstable-2022-07-09"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "asb2m10"; | ||
repo = "dexed"; | ||
rev = "2c036316bcd512818aa9cc8129767ad9e0ec7132"; | ||
fetchSubmodules = true; | ||
sha256 = "sha256-6buvA72YRlGjHWLPEZMr45lYYG6ZY+IWmylcHruX27g="; | ||
}; | ||
|
||
postPatch = '' | ||
# needs special setup on Linux, dunno if it can work on Darwin | ||
# https://github.com/NixOS/nixpkgs/issues/19098 | ||
sed -i -e '/juce::juce_recommended_lto_flags/d' Source/CMakeLists.txt | ||
''; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
pkg-config | ||
]; | ||
|
||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ | ||
libX11 | ||
libXext | ||
libXcursor | ||
libXinerama | ||
libXrandr | ||
freetype | ||
alsa-lib | ||
libjack2 | ||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ | ||
Cocoa | ||
WebKit | ||
MetalKit | ||
simd | ||
DiscRecording | ||
CoreAudioKit | ||
]; | ||
|
||
# JUCE insists on only dlopen'ing these | ||
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux (toString [ | ||
"-lX11" | ||
"-lXext" | ||
"-lXcursor" | ||
"-lXinerama" | ||
"-lXrandr" | ||
"-ljack" | ||
]); | ||
|
||
installPhase = let | ||
vst3Dir = if stdenv.hostPlatform.isDarwin then "$out/Library/Audio/Plug-Ins/VST3" else "$out/lib/vst3"; | ||
# this one's a guess, don't know where ppl have agreed to put them yet | ||
clapDir = if stdenv.hostPlatform.isDarwin then "$out/Library/Audio/Plug-Ins/CLAP" else "$out/lib/clap"; | ||
auDir = "$out/Library/Audio/Plug-Ins/Components"; | ||
in '' | ||
runHook preInstall | ||
'' + (if stdenv.hostPlatform.isDarwin then '' | ||
mkdir -p $out/{Applications,bin} | ||
mv Source/Dexed_artefacts/Release/Standalone/Dexed.app $out/Applications/ | ||
ln -s $out/{Applications/Dexed.app/Contents/MacOS,bin}/Dexed | ||
'' else '' | ||
install -Dm755 {Source/Dexed_artefacts/Release/Standalone,$out/bin}/Dexed | ||
'') + '' | ||
mkdir -p ${vst3Dir} ${clapDir} | ||
mv Source/Dexed_artefacts/Release/VST3/* ${vst3Dir} | ||
mv Source/Dexed_artefacts/Release/CLAP/* ${clapDir} | ||
'' + lib.optionalString stdenv.hostPlatform.isDarwin '' | ||
mkdir -p ${auDir} | ||
mv Source/Dexed_artefacts/Release/AU/* ${auDir} | ||
'' + '' | ||
runHook postInstall | ||
''; | ||
|
||
meta = with lib; { | ||
description = "DX7 FM multi platform/multi format plugin"; | ||
mainProgram = "Dexed"; | ||
homepage = "https://asb2m10.github.io/dexed"; | ||
license = licenses.gpl3Only; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ OPNA2608 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.