summary refs log tree commit diff
path: root/pkgs/applications/audio/faust/faust2csound.nix
blob: eb5e5831cddd7f700a29b0761d571c8dcf628326 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ faust
, csound
}:

faust.wrapWithBuildEnv {

  baseName = "faust2csound";

  propagatedBuildInputs = [
    csound
  ];

  # faust2csound generated .cpp files have
  #   #include "csdl.h"
  # but that file is in the csound/ subdirectory
  preFixup = ''
    NIX_CFLAGS_COMPILE="$(printf '%s' "$NIX_CFLAGS_COMPILE" | sed 's%${csound}/include%${csound}/include/csound%')"
  '';

}