···11+{ faust
22+, csound
33+}:
44+55+faust.wrapWithBuildEnv {
66+77+ baseName = "faust2csound";
88+99+ propagatedBuildInputs = [
1010+ csound
1111+ ];
1212+1313+ # faust2csound generated .cpp files have
1414+ # #include "csdl.h"
1515+ # but that file is in the csound/ subdirectory
1616+ preFixup = ''
1717+ NIX_CFLAGS_COMPILE="$(printf '%s' "$NIX_CFLAGS_COMPILE" | sed 's%${csound}/include%${csound}/include/csound%')"
1818+ '';
1919+2020+}
+14
pkgs/applications/audio/faust/faust2firefox.nix
···11+{ faust
22+, xdg_utils
33+}:
44+55+# This just runs faust2svg, then attempts to open a browser using
66+# 'xdg-open'.
77+88+faust.wrap {
99+1010+ baseName = "faust2firefox";
1111+1212+ runtimeInputs = [ xdg_utils ];
1313+1414+}