diff options
author | Bart Brouns <bart@magnetophon.nl> | 2022-02-28 15:42:44 +0100 |
---|---|---|
committer | Bart Brouns <bart@magnetophon.nl> | 2022-03-02 00:35:40 +0100 |
commit | 29199091c685ec6d924331ed0d10f90b52ffc589 (patch) | |
tree | ae6adfd843ee23e0db4ca6398ea0a460196bc3ea /pkgs/applications/audio/odin2 | |
parent | 676678f23fdf51a1965eb459a4a7dc9bdb78d259 (diff) |
odin2: int at unstable-2022-02-23
Diffstat (limited to 'pkgs/applications/audio/odin2')
-rw-r--r-- | pkgs/applications/audio/odin2/default.nix | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/pkgs/applications/audio/odin2/default.nix b/pkgs/applications/audio/odin2/default.nix new file mode 100644 index 0000000000000..f0bd5e0156483 --- /dev/null +++ b/pkgs/applications/audio/odin2/default.nix @@ -0,0 +1,79 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, pkg-config +, alsa-lib +, freetype +, libjack2 +, lv2 +, libX11 +, libXcursor +, libXext +, libXinerama +, libXrandr +, libGL +, gcc-unwrapped +}: + +stdenv.mkDerivation rec { + pname = "odin2"; + version = "unstable-2022-02-23"; + + src = fetchFromGitHub { + owner = "baconpaul"; + repo = "odin2"; + rev = "ed02d06cfb5db8a118d291c00bd2e4cd6e262cde"; + fetchSubmodules = true; + sha256 = "sha256-VkZ+mqCmqWQafdN0nQxJdPxbiaZ37/0jOhLvVbnGLvQ="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + alsa-lib + freetype + libjack2 + lv2 + libX11 + libXcursor + libXext + libXinerama + libXrandr + libGL + ]; + + # JUCE dlopen's these at runtime, crashes without them + NIX_LDFLAGS = (toString [ + "-lX11" + "-lXext" + "-lXcursor" + "-lXinerama" + "-lXrandr" + ]); + + cmakeFlags = [ + "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar" + "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" + "-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm" + ]; + + installPhase = '' + mkdir -p $out/bin $out/lib/vst3 + cd Odin2_artefacts/Release + cp -r VST3/Odin2.vst3 $out/lib/vst3 + cp -r Standalone/Odin2 $out/bin +''; + + + meta = with lib; { + description = "Odin 2 Synthesizer Plugin"; + homepage = "https://thewavewarden.com/odin2"; + license = licenses.gpl3; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ magnetophon ]; + }; +} |