-
-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathnix.build.nix
More file actions
157 lines (144 loc) · 2.55 KB
/
Copy pathnix.build.nix
File metadata and controls
157 lines (144 loc) · 2.55 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{ clangStdenv
, lib
, fetchFromGitHub
, cmake
, ninja
, pkg-config
, alsa-lib
, avahi
, avahi-compat
, bluez
, boost
# , faust
, fmt
, git
, ffmpeg
, fftw
, flac
, gnutls
, lame
, libcoap
, libjack2
, libopus
, libsndfile
, libvorbis
, lilv
, lv2
, mpg123
, pipewire
, portaudio
, portmidi
, libsamplerate
, qt6
, rapidfuzz-cpp
, re2
, rubberband
, simdjson
, snappy
, SDL2
, spdlog
, suil
, udev
, xorg
, zstd
}:
# TODO: figure out LLVM jit
# assert lib.versionAtLeast llvm.version "15";
clangStdenv.mkDerivation (finalAttrs: {
pname = "ossia-score";
version = "devel";
src = ../.;
nativeBuildInputs = [ cmake ninja pkg-config qt6.qttools qt6.wrapQtAppsHook ];
buildInputs = [
alsa-lib
boost
# faust
avahi
avahi-compat
bluez
ffmpeg
fftw
flac
fmt
git
gnutls
lame
libcoap
libjack2
libopus
libsamplerate
libsndfile
libvorbis
lilv
lv2
mpg123
pipewire
portaudio
portmidi
qt6.qtbase
qt6.qtdeclarative
qt6.qtserialport
qt6.qtscxml
qt6.qtshadertools
qt6.qtsvg
qt6.qtconnectivity
qt6.qtwayland
qt6.qtwebsockets
rapidfuzz-cpp
re2
rubberband
simdjson
snappy
SDL2
spdlog
suil
udev
xorg.libX11
xorg.libXext
xorg.libXcomposite
xorg.libXrandr
];
cmakeFlags = [
"-Wno-dev"
"-DSCORE_DEPLOYMENT_BUILD=1"
"-DSCORE_STATIC_PLUGINS=1"
"-DSCORE_FHS_BUILD=1"
"-DCMAKE_UNITY_BUILD=1"
"-DCMAKE_SKIP_RPATH=ON"
"-DOSSIA_USE_SYSTEM_LIBRARIES=1"
"-DSCORE_USE_SYSTEM_LIBRARIES=1"
"-DCMAKE_C_FLAGS=-w"
"-DCMAKE_CXX_FLAGS=-w"
"-DLilv_INCLUDE_DIR=${lilv.dev}/include/lilv-0"
"-DSuil_INCLUDE_DIR=${suil}/include/suil-0"
];
# Ossia dlopen's these at runtime, refuses to start without them
env.NIX_LDFLAGS = toString [
"-llilv-0"
"-lsuil-0"
];
installPhase = ''
runHook preInstall
cmake -DCMAKE_INSTALL_DO_STRIP=1 -DCOMPONENT=OssiaScore -P cmake_install.cmake
runHook postInstall
'';
runtimeDependencies = [
alsa-lib
avahi
avahi-compat
bluez
fftw
libjack2
lilv
pipewire
udev
];
meta = with lib; {
homepage = "https://ossia.io/score/about.html";
description = "A sequencer for audio-visual artists, designed to enable the creation of interactive shows, museum installations, intermedia digital artworks, interactive music and more";
# TODO: this should work for darwin too
platforms = platforms.linux;
license = licenses.gpl3Only;
maintainers = with maintainers; [ minijackson jcelerier ];
};
})