mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
21 lines
379 B
Nix
21 lines
379 B
Nix
|
{ 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%')"
|
||
|
'';
|
||
|
|
||
|
}
|