1 { lib, stdenv, fetchFromGitHub, autoPatchelfHook, cmake, pkg-config
2 , alsa-lib, freetype, libjack2
3 , libX11, libXext, libXcursor, libXinerama, libXrandr, libXrender
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 fetchSubmodules = true;
15 hash = "sha256-WhJh+Sx64JYxQQ1LXpDUwXeodFU1EZ0TmMhn+6w0hQg=";
18 nativeBuildInputs = [ autoPatchelfHook cmake pkg-config ];
20 alsa-lib freetype libjack2
21 libX11 libXext libXcursor libXinerama libXrandr libXrender
23 # JUCE loads most dependencies at runtime:
24 runtimeDependencies = map lib.getLib buildInputs;
26 env.NIX_CFLAGS_COMPILE = toString [
27 # Support JACK output in the standalone application:
33 # The default "make install" only installs JUCE, which should not be installed, and does not install proteus.
38 cp -rT Proteus_artefacts/*/Standalone $out/bin
39 cp -rT Proteus_artefacts/*/LV2 $out/lib/lv2
40 cp -rT Proteus_artefacts/*/VST3 $out/lib/vst3
46 description = "Guitar amp and pedal capture plugin using neural networks";
47 homepage = "https://github.com/GuitarML/Proteus";
48 license = licenses.gpl3;
49 platforms = platforms.linux;
50 maintainers = with maintainers; [ orivej ];
51 mainProgram = "Proteus";