diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 04:00:39 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-17 04:15:32 +0200 |
commit | 48d18fb5174c82c69e84859fe65f1ee8037fd981 (patch) | |
tree | d09e7bb3a193a65f25e91a9d3323650a24ab21b1 /modules/packages/discord-screenaudio.nix | |
parent | Update lockfile (diff) | |
download | Rory-Open-Architecture-48d18fb5174c82c69e84859fe65f1ee8037fd981.tar.xz |
Desktop stuff
Diffstat (limited to 'modules/packages/discord-screenaudio.nix')
-rw-r--r-- | modules/packages/discord-screenaudio.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/modules/packages/discord-screenaudio.nix b/modules/packages/discord-screenaudio.nix new file mode 100644 index 0000000..4bf7c11 --- /dev/null +++ b/modules/packages/discord-screenaudio.nix @@ -0,0 +1,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 ]; + }; +} |