From 7503d606e437271c70c7fc25d39fb2bdbfe92867 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Mon, 23 Mar 2015 12:01:27 -0500 Subject: [PATCH] faust: add various faust2appl scripts --- pkgs/applications/audio/faust/faust2alqt.nix | 15 ++++++++++ pkgs/applications/audio/faust/faust2alsa.nix | 29 +++++++++++++++++++ .../applications/audio/faust/faust2csound.nix | 20 +++++++++++++ .../audio/faust/faust2firefox.nix | 14 +++++++++ pkgs/applications/audio/faust/faust2jack.nix | 23 +++++++++++++++ pkgs/applications/audio/faust/faust2jaqt.nix | 22 ++++++++++++++ pkgs/applications/audio/faust/faust2lv2.nix | 11 +++++++ pkgs/top-level/all-packages.nix | 14 +++++++++ 8 files changed, 148 insertions(+) create mode 100644 pkgs/applications/audio/faust/faust2alqt.nix create mode 100644 pkgs/applications/audio/faust/faust2alsa.nix create mode 100644 pkgs/applications/audio/faust/faust2csound.nix create mode 100644 pkgs/applications/audio/faust/faust2firefox.nix create mode 100644 pkgs/applications/audio/faust/faust2jack.nix create mode 100644 pkgs/applications/audio/faust/faust2jaqt.nix create mode 100644 pkgs/applications/audio/faust/faust2lv2.nix diff --git a/pkgs/applications/audio/faust/faust2alqt.nix b/pkgs/applications/audio/faust/faust2alqt.nix new file mode 100644 index 00000000000..8ac26e488b3 --- /dev/null +++ b/pkgs/applications/audio/faust/faust2alqt.nix @@ -0,0 +1,15 @@ +{ faust +, alsaLib +, qt4 +}: + +faust.wrapWithBuildEnv { + + baseName = "faust2alqt"; + + propagatedBuildInputs = [ + alsaLib + qt4 + ]; + +} diff --git a/pkgs/applications/audio/faust/faust2alsa.nix b/pkgs/applications/audio/faust/faust2alsa.nix new file mode 100644 index 00000000000..2fe03d73a23 --- /dev/null +++ b/pkgs/applications/audio/faust/faust2alsa.nix @@ -0,0 +1,29 @@ +{ faust +, alsaLib +, atk +, cairo +, fontconfig +, freetype +, gdk_pixbuf +, glib +, gtk +, pango +}: + +faust.wrapWithBuildEnv { + + baseName = "faust2alsa"; + + propagatedBuildInputs = [ + alsaLib + atk + cairo + fontconfig + freetype + gdk_pixbuf + glib + gtk + pango + ]; + +} diff --git a/pkgs/applications/audio/faust/faust2csound.nix b/pkgs/applications/audio/faust/faust2csound.nix new file mode 100644 index 00000000000..eb5e5831cdd --- /dev/null +++ b/pkgs/applications/audio/faust/faust2csound.nix @@ -0,0 +1,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%')" + ''; + +} diff --git a/pkgs/applications/audio/faust/faust2firefox.nix b/pkgs/applications/audio/faust/faust2firefox.nix new file mode 100644 index 00000000000..b2cc6f46457 --- /dev/null +++ b/pkgs/applications/audio/faust/faust2firefox.nix @@ -0,0 +1,14 @@ +{ faust +, xdg_utils +}: + +# This just runs faust2svg, then attempts to open a browser using +# 'xdg-open'. + +faust.wrap { + + baseName = "faust2firefox"; + + runtimeInputs = [ xdg_utils ]; + +} diff --git a/pkgs/applications/audio/faust/faust2jack.nix b/pkgs/applications/audio/faust/faust2jack.nix new file mode 100644 index 00000000000..bec523ad021 --- /dev/null +++ b/pkgs/applications/audio/faust/faust2jack.nix @@ -0,0 +1,23 @@ +{ faust +, gtk +, jack2 +, opencv +}: + +faust.wrapWithBuildEnv { + + baseName = "faust2jack"; + + scripts = [ + "faust2jack" + "faust2jackinternal" + "faust2jackconsole" + ]; + + propagatedBuildInputs = [ + gtk + jack2 + opencv + ]; + +} diff --git a/pkgs/applications/audio/faust/faust2jaqt.nix b/pkgs/applications/audio/faust/faust2jaqt.nix new file mode 100644 index 00000000000..3590bc6860d --- /dev/null +++ b/pkgs/applications/audio/faust/faust2jaqt.nix @@ -0,0 +1,22 @@ +{ faust +, jack2 +, opencv +, qt4 +}: + +faust.wrapWithBuildEnv { + + baseName = "faust2jaqt"; + + scripts = [ + "faust2jaqt" + "faust2jackserver" + ]; + + propagatedBuildInputs = [ + jack2 + opencv + qt4 + ]; + +} diff --git a/pkgs/applications/audio/faust/faust2lv2.nix b/pkgs/applications/audio/faust/faust2lv2.nix new file mode 100644 index 00000000000..4d11395e738 --- /dev/null +++ b/pkgs/applications/audio/faust/faust2lv2.nix @@ -0,0 +1,11 @@ +{ faust +, lv2 +}: + +faust.wrapWithBuildEnv { + + baseName = "faust2lv2"; + + propagatedBuildInputs = [ lv2 ]; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac68ef3ec8f..7a00666745e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13518,6 +13518,20 @@ let faust = callPackage ../applications/audio/faust { }; + faust2alqt = callPackage ../applications/audio/faust/faust2alqt.nix { }; + + faust2alsa = callPackage ../applications/audio/faust/faust2alsa.nix { }; + + faust2csound = callPackage ../applications/audio/faust/faust2csound.nix { }; + + faust2firefox = callPackage ../applications/audio/faust/faust2firefox.nix { }; + + faust2jack = callPackage ../applications/audio/faust/faust2jack.nix { }; + + faust2jaqt = callPackage ../applications/audio/faust/faust2jaqt.nix { }; + + faust2lv2 = callPackage ../applications/audio/faust/faust2lv2.nix { }; + fceux = callPackage ../misc/emulators/fceux { }; foldingathome = callPackage ../misc/foldingathome { };