forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / fa / faustPhysicalModeling / package.nix
blob1b7372d5d904ca84f08464bc13798795eeefbf40
1 { stdenv, lib, fetchFromGitHub, faust2jaqt, faust2lv2 }:
2 stdenv.mkDerivation rec {
3   pname = "faustPhysicalModeling";
4   version = "2.75.7";
6   src = fetchFromGitHub {
7     owner = "grame-cncm";
8     repo = "faust";
9     rev = version;
10     sha256 = "sha256-j5Qg/H7aMBZ6A8gh6v6+ICxmCZ7ya2tVF2FjueVtvHo=";
11   };
13   buildInputs = [ faust2jaqt faust2lv2 ];
15   dontWrapQtApps = true;
17   buildPhase = ''
18     cd examples/physicalModeling
20     for f in *MIDI.dsp; do
21       faust2jaqt -time -vec -double -midi -nvoices 16 -t 99999 $f
22       faust2lv2  -time -vec -double -gui -nvoices 16 -t 99999 $f
23     done
24   '';
26   installPhase = ''
27     mkdir -p $out/lib/lv2 $out/bin
28     mv *.lv2/ $out/lib/lv2
29     for f in $(find . -executable -type f); do
30       cp $f $out/bin/
31     done
32   '';
34   meta = with lib; {
35     description = "Physical models included with faust compiled as jack standalone and lv2 instruments";
36     homepage = "https://github.com/grame-cncm/faust/tree/master-dev/examples/physicalModeling";
37     license = licenses.mit;
38     platforms = platforms.linux;
39     maintainers = with maintainers; [ magnetophon ];
40   };