Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faustPhysicalModeling: init at 2.20.2 #82642

Merged
merged 3 commits into from Jun 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/licenses.nix
Expand Up @@ -703,6 +703,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
free = false;
};

stk = {
magnetophon marked this conversation as resolved.
Show resolved Hide resolved
shortName = "stk";
fullName = "Synthesis Tool Kit 4.3";
url = https://github.com/thestk/stk/blob/master/LICENSE;
};

tcltk = spdx {
spdxId = "TCL";
fullName = "TCL/TK License";
Expand Down
39 changes: 39 additions & 0 deletions 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 ];
};
}
39 changes: 39 additions & 0 deletions pkgs/applications/audio/faustStk/default.nix
@@ -0,0 +1,39 @@
{ stdenv, lib, fetchFromGitHub, faust2jaqt, faust2lv2 }:

stdenv.mkDerivation rec {
pname = "faustPhhysicalModeling";
version = "2.20.2";

src = fetchFromGitHub {
owner = "grame-cncm";
repo = "faust";
rev = version;
sha256 = "1mm93ba26b7q69hvabzalg30dh8pl858nj4m2bb57pznnp09lq9a";
};

buildInputs = [ faust2jaqt faust2lv2 ];

buildPhase = ''
cd examples/physicalModeling/faust-stk

for f in *.dsp; do
faust2jaqt -time -vec -midi -nvoices 8 -t 99999 $f
faust2lv2 -time -vec -double -gui -nvoices 32 -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 modeling instruments included with faust, compiled as jack standalone and lv2 instruments";
homepage = "https://ccrma.stanford.edu/~rmichon/faustSTK/";
license = licenses.stk;
platforms = platforms.linux;
maintainers = with maintainers; [ magnetophon ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -27449,6 +27449,10 @@ in

faustlive = callPackage ../applications/audio/faust/faustlive.nix { };

faustPhysicalModeling = callPackage ../applications/audio/faustPhysicalModeling { };

faustStk = callPackage ../applications/audio/faustStk { };

fceux = callPackage ../misc/emulators/fceux { };

flockit = callPackage ../tools/backup/flockit { };
Expand Down