1{
2 faust,
3 csound,
4}:
5
6faust.wrapWithBuildEnv {
7
8 baseName = "faust2csound";
9
10 propagatedBuildInputs = [
11 csound
12 ];
13
14 # faust2csound generated .cpp files have
15 # #include "csdl.h"
16 # but that file is in the csound/ subdirectory
17 preFixup = ''
18 NIX_CFLAGS_COMPILE="$(printf '%s' "$NIX_CFLAGS_COMPILE" | sed 's%${csound}/include%${csound}/include/csound%')"
19 '';
20
21}