summary refs log tree commit diff
path: root/pkgs/applications/audio/aether-lv2/default.nix
blob: 2d8a6e5003a1ee2055877c73c7878f9fe2691ddc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, stdenv, fetchFromGitHub, lv2, libX11, libGL, libGLU, mesa, cmake }:

stdenv.mkDerivation rec {
  pname = "aether-lv2";
  version = "1.2.1";

  src = fetchFromGitHub {
    owner = "Dougal-s";
    repo = "aether";
    rev = "v${version}";
    sha256 = "0xhih4smjxn87s0f4gaab51d8594qlp0lyypzxl5lm37j1i9zigs";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [
    lv2 libX11 libGL libGLU mesa
  ];

  NIX_CFLAGS_COMPILE = toString [
    # Needed with GCC 12
    "-Wno-error=array-bounds"
    "-Wno-error=stringop-overflow"
  ];

  installPhase = ''
    mkdir -p $out/lib/lv2
    cp -r aether.lv2 $out/lib/lv2
  '';

  meta = with lib; {
    homepage = "https://dougal-s.github.io/Aether/";
    description = "An algorithmic reverb LV2 based on Cloudseed";
    maintainers = [ maintainers.magnetophon ];
    platforms = platforms.linux;
    license = licenses.mit;
  };
}