blob: 7c37b8a697b47f7043ad618c543c4bcc787d746e (
plain)
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
|
{
stdenv,
lib,
bash,
fetchFromGitHub,
faust2jaqt,
faust2lv2,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "faust-physicalmodeling";
version = "2.88.0";
src = fetchFromGitHub {
owner = "grame-cncm";
repo = "faust";
rev = finalAttrs.version;
sha256 = "sha256-UdMvmcuMYcsP9G9AAlv0OmO6XRbPFNQLCqsf0q/BU4w=";
};
nativeBuildInputs = [
faust2jaqt
faust2lv2
];
buildInputs = [
bash
];
dontWrapQtApps = true;
buildPhase = ''
runHook preBuild
cd examples/physicalModeling
for f in *MIDI.dsp; do
faust2jaqt -time -vec -double -midi -nvoices 16 -t 99999 $f
faust2lv2 -time -vec -double -gui -nvoices 16 -t 99999 $f
done
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib/lv2 $out/bin
mv *.lv2/ $out/lib/lv2
for f in $(find . -executable -type f); do
cp $f $out/bin/
done
patchShebangs --host $out/bin
runHook postInstall
'';
meta = {
description = "Physical models included with faust compiled as jack standalone and lv2 instruments";
homepage = "https://github.com/grame-cncm/faust/tree/master-dev/examples/physicalModeling";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ magnetophon ];
# compiles stuff for the build platform, difficult to do properly
broken = stdenv.hostPlatform != stdenv.buildPlatform;
};
})
|