19 stdenv.mkDerivation rec {
23 src = fetchFromGitHub {
24 owner = "TheWaveWarden";
27 fetchSubmodules = true;
28 hash = "sha256-N96Nb7G6hqfh8DyMtHbttl/fRZUkS8f2KfPSqeMAhHY=";
32 sed '1i#include <utility>' -i \
33 libs/JUCELV2/modules/juce_gui_basics/windows/juce_ComponentPeer.h # gcc12
54 # JUCE dlopen's these at runtime, crashes without them
55 NIX_LDFLAGS = (toString [
64 "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
65 "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
66 "-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
70 mkdir -p $out/bin $out/lib/vst3 $out/lib/lv2 $out/lib/clap
71 cd Odin2_artefacts/Release
72 cp Standalone/Odin2 $out/bin
73 cp -r VST3/Odin2.vst3 $out/lib/vst3
74 cp -r LV2/Odin2.lv2 $out/lib/lv2
75 cp -r CLAP/Odin2.clap $out/lib/clap
80 description = "Odin 2 Synthesizer Plugin";
81 homepage = "https://thewavewarden.com/odin2";
82 license = licenses.gpl3;
83 platforms = [ "x86_64-linux" ];
84 maintainers = with maintainers; [ magnetophon ];
85 mainProgram = "Odin2";