@@ -0,0 +1,43 @@
1+{ stdenv, lib, fetchFromGitHub, unzip, fetchzip, libX11 }:
2+
3+let
4+
5+ vst-sdk = stdenv.mkDerivation rec {
6+ name = "vstsdk3610_11_06_2018_build_37";
7+ src = fetchzip {
8+ url = "https://web.archive.org/web/20181016150224if_/https://download.steinberg.net/sdk_downloads/${name}.zip";
9+ sha256 = "0da16iwac590wphz2sm5afrfj42jrsnkr1bxcy93lj7a369ildkj";
10+ };
11+ installPhase = "cp -r . $out";
12+ };
13+
14+in stdenv.mkDerivation rec {
15+ pname = "oxefmsynth";
16+ version = "1.3.5";
17+
18+ src = fetchFromGitHub {
19+ owner = "oxesoft";
20+ repo = pname;
21+ rev = "v${version}";
22+ sha256 = "1rk71ls33a38wx8i22plsi7d89cqqxrfxknq5i4f9igsw1ipm4gn";
23+ };
24+
25+ NIX_CFLAGS_COMPILE = [ "-Wno-error=narrowing" ];
26+
27+ buildFlags = [ "VSTSDK_PATH=${vst-sdk}/VST2_SDK" ];
28+
29+ buildInputs = [ libX11 ];
30+
31+ installPhase = ''
32+ mkdir -p $out/lib/lxvst
33+ install -Dm644 oxevst64.so -t $out/lib/lxvst
34+ '';
35+
36+ meta = with lib; {
37+ homepage = "https://github.com/oxesoft/oxefmsynth";
38+ description = "An open source VST 2.4 instrument plugin";
39+ maintainers = [ maintainers.hirenashah ];
40+ platforms = [ "x86_64-linux" ];
41+ license = licenses.gpl3Only;
42+ };
43+}