20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
25 owner = "TheWaveWarden";
28 fetchSubmodules = true;
29 hash = "sha256-N96Nb7G6hqfh8DyMtHbttl/fRZUkS8f2KfPSqeMAhHY=";
33 sed '1i#include <utility>' -i \
34 libs/JUCELV2/modules/juce_gui_basics/windows/juce_ComponentPeer.h # gcc12
55 # JUCE dlopen's these at runtime, crashes without them
67 "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
68 "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
69 "-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
73 mkdir -p $out/bin $out/lib/vst3 $out/lib/lv2 $out/lib/clap
74 cd Odin2_artefacts/Release
75 cp Standalone/Odin2 $out/bin
76 cp -r VST3/Odin2.vst3 $out/lib/vst3
77 cp -r LV2/Odin2.lv2 $out/lib/lv2
78 cp -r CLAP/Odin2.clap $out/lib/clap
82 description = "Odin 2 Synthesizer Plugin";
83 homepage = "https://thewavewarden.com/odin2";
84 license = licenses.gpl3;
85 platforms = [ "x86_64-linux" ];
86 maintainers = with maintainers; [ magnetophon ];
87 mainProgram = "Odin2";