Jump to content

Faust: Difference between revisions

From Official NixOS Wiki
Klinger (talk | contribs)
m Link to Faust added
Lukec (talk | contribs)
m Add lang="nix" to code block for syntax highlighting and change self: super: to final: prev:
 
Line 10: Line 10:
Simply add the following [[Overlays|overlay]]:
Simply add the following [[Overlays|overlay]]:


 
<syntaxhighlight lang="nix">
    (self: super: {
final: prev: {
        faust = super.faust.overrideAttrs (old: {
  faust = prev.faust.overrideAttrs (old: {
          patches = (old.patches or [ ]) ++ [
    patches = (old.patches or [ ]) ++ [
            (super.fetchpatch {
      (prev.fetchpatch {
              url =
        url =
                "https://github.com/grame-cncm/faust/commit/cf80f4c94ac979922892a7f594121358cd178708.patch";
          "https://github.com/grame-cncm/faust/commit/cf80f4c94ac979922892a7f594121358cd178708.patch";
              sha256 = "sha256-MMFgCzAT33kwnBGvydyoqxJmMjWpxyF9Okjk1rMmrcw=";
        sha256 = "sha256-MMFgCzAT33kwnBGvydyoqxJmMjWpxyF9Okjk1rMmrcw=";
            })
          ];
        });
       })
       })
    ];
  });
};
</syntaxhighlight>


[[Category:Languages]]
[[Category:Languages]]

Latest revision as of 21:34, 24 March 2026

Faust (Functional Audio Stream) is a functional programming language specifically designed for real-time signal processing and synthesis.


Faust in NixOS 22.05

NixOS 22.05 contains Faust version 2.40.0.

If you want to use the alsa-qt architecture, you need to apply an upstream patch, because the architecture file as provided in this version does not compile.

Simply add the following overlay:

final: prev: {
  faust = prev.faust.overrideAttrs (old: {
    patches = (old.patches or [ ]) ++ [
      (prev.fetchpatch {
        url =
          "https://github.com/grame-cncm/faust/commit/cf80f4c94ac979922892a7f594121358cd178708.patch";
        sha256 = "sha256-MMFgCzAT33kwnBGvydyoqxJmMjWpxyF9Okjk1rMmrcw=";
      })
    ];
  });
};