@@ -0,0 +1,33 @@
1+{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, cairo, libxkbcommon, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor, alsa-lib, libjack2
2+}:
3+
4+stdenv.mkDerivation rec {
5+ pname = "surge-XT";
6+ version = "unstable-2021-11-07";
7+
8+ src = fetchFromGitHub {
9+ owner = "surge-synthesizer";
10+ repo = "surge";
11+ rev = "ed93833eb44b177c977e3a7b878ffdd9bf9f24e5";
12+ sha256 = "0b164659ksl6h5nn7jja5zccx2mwzibqs6b7hg8l98gpcy9fi5r2";
13+ fetchSubmodules = true;
14+ };
15+
16+ nativeBuildInputs = [ cmake pkg-config ];
17+ buildInputs = [ cairo libxkbcommon xcbutilcursor xcbutilkeysyms xcbutil libXrandr libXinerama libXcursor alsa-lib libjack2 ];
18+
19+ installPhase = ''
20+ cd ..
21+ cmake --build build --config Release --target install
22+ '';
23+
24+ doInstallCheck = false;
25+
26+ meta = with lib; {
27+ description = "LV2 & VST3 synthesizer plug-in (previously released as Vember Audio Surge)";
28+ homepage = "https://surge-synthesizer.github.io";
29+ license = licenses.gpl3;
30+ platforms = [ "x86_64-linux" ];
31+ maintainers = with maintainers; [ magnetophon orivej ];
32+ };
33+}