summary refs log tree commit diff
path: root/modules/packages/discord-screenaudio.nix
blob: 4bf7c11aec9c4a0ab75c60be48ffd153eda39fcb (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ lib
, stdenv
, fetchFromGitHub
, cmake
, wrapQtAppsHook
, pkg-config
, qtbase
, qtwebengine
, knotifications
, kxmlgui
, kglobalaccel
, pipewire
, xdg-desktop-portal
}:

stdenv.mkDerivation rec {
  pname = "discord-screenaudio";
  version = "1.9.0";

  src = fetchFromGitHub {
    owner = "maltejur";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-PPP/+7x0dcQHowB7hUZu85LK/G+ohrPeRB0vv6e3PBg=";
    fetchSubmodules = true;
  };

  cmakeFlags = [
    "-DPipeWire_INCLUDE_DIRS=${pipewire.dev}/include/pipewire-0.3"
    "-DSpa_INCLUDE_DIRS=${pipewire.dev}/include/spa-0.2"
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
    qtwebengine
    knotifications
    kxmlgui
    kglobalaccel
    pipewire
    pipewire.pulse
    xdg-desktop-portal
  ];

  meta = with lib; {
    homepage = "https://github.com/maltejur/discord-screenaudio";
    description = "A custom discord client that supports streaming with audio on Linux";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ michaelBelsanti ];
  };
}