diff options
author | Bart Brouns <bart@magnetophon.nl> | 2020-03-15 10:27:54 +0100 |
---|---|---|
committer | Bart Brouns <bart@magnetophon.nl> | 2021-06-05 23:50:45 +0200 |
commit | d3115756194861f48944b6e59d297ef5ef6c413b (patch) | |
tree | 83799d654c14afadfb4373d83f567484caf1ec8f /pkgs/applications/audio/faustPhysicalModeling | |
parent | 754ec218c396d2de5cc493316536c91be2458e90 (diff) |
faustPhysicalModeling: init at 2.20.2
Diffstat (limited to 'pkgs/applications/audio/faustPhysicalModeling')
-rw-r--r-- | pkgs/applications/audio/faustPhysicalModeling/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/faustPhysicalModeling/default.nix b/pkgs/applications/audio/faustPhysicalModeling/default.nix new file mode 100644 index 0000000000000..f55cee957c770 --- /dev/null +++ b/pkgs/applications/audio/faustPhysicalModeling/default.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, fetchFromGitHub, faust2jaqt, faust2lv2 }: +stdenv.mkDerivation rec { + pname = "faustPhysicalModeling"; + version = "2.20.2"; + + src = fetchFromGitHub { + owner = "grame-cncm"; + repo = "faust"; + rev = version; + sha256 = "1mm93ba26b7q69hvabzalg30dh8pl858nj4m2bb57pznnp09lq9a"; + }; + + buildInputs = [ faust2jaqt faust2lv2 ]; + + buildPhase = '' + cd examples/physicalModeling + + for f in *MIDI.dsp; do + faust2jaqt -time -vec -double -midi -nvoices 16 -t 99999 $f + faust2lv2 -time -vec -double -gui -nvoices 16 -t 99999 $f + done + ''; + + installPhase = '' + mkdir -p $out/lib/lv2 $out/bin + mv *.lv2/ $out/lib/lv2 + for f in $(find . -executable -type f); do + cp $f $out/bin/ + done + ''; + + meta = with lib; { + description = "The physical models included with faust compiled as jack standalone and lv2 instruments"; + homepage = "https://github.com/grame-cncm/faust/tree/master-dev/examples/physicalModeling"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ magnetophon ]; + }; +} |