-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathairwave.nix
44 lines (43 loc) · 1.16 KB
/
airwave.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ stdenv, fetchurl, pkgs, callPackage, vstsdk, gnused }:
let
wine32 =
(callPackage <nixpkgs/pkgs/misc/emulators/wine> {
wineRelease = "unstable";
wineBuild = "wine32";
});
wine64 =
(callPackage <nixpkgs/pkgs/misc/emulators/wine> {
wineRelease = "unstable";
wineBuild = "wine64";
});
in
stdenv.mkDerivation rec {
name = "airwave-${version}";
version = "1.2.1";
src = fetchurl {
url = "https://github.com/phantom-code/airwave/archive/${version}.tar.gz";
sha256 = "1smwaggqk3aim9mknf7ahm4zpsrgqn8j18ivwyflnhvhpdrahqh6";
};
cmakeFlags = [ "-DVSTSDK_PATH=${vstsdk}" ];
# Fixes linking error for airwave-host-64:
preBuild = ''
${gnused}/bin/sed -i src/host/CMakeFiles/airwave-host-64.dir/link.txt \
-e "s#wineg++#${wine64}/bin/wineg++#"
'';
buildInputs = with pkgs; [
cmake
file
gcc_multi
glibc_multi
qt5Full
wine32
wine64
x11
];
meta = with stdenv.lib; {
homepage = https://github.com/phantom-code/airwave;
description = "WINE-based VST bridge";
license = licenses.mit;
maintainers = [ maintainers.joelmo ];
};
}