diff options
author | Artturi <Artturin@artturin.com> | 2023-11-22 04:59:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 04:59:29 +0200 |
commit | 955f2d39ec08edb4ba3cfbfa7253e19aad45d3d8 (patch) | |
tree | c9721ccf2f62420c2d58bd7f63a394172c7d0f0e /pkgs/applications/networking/instant-messengers | |
parent | 6834314febcd6190c5bd19580fb09cde1c729af6 (diff) | |
parent | a09acf2903eae8922fcef5e43612303273914e8b (diff) |
Merge pull request #249670 from huantianad/discord-screenaudio
Diffstat (limited to 'pkgs/applications/networking/instant-messengers')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix b/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix new file mode 100644 index 0000000000000..44ef7cae84c72 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix @@ -0,0 +1,56 @@ +{ lib +, stdenv +, fetchFromGitHub +, wrapQtAppsHook +, cmake +, pkg-config +, qtbase +, qtwebengine +, qtwayland +, pipewire +, nix-update-script +}: + +stdenv.mkDerivation rec { + pname = "discord-screenaudio"; + version = "1.9.2"; + + src = fetchFromGitHub { + owner = "maltejur"; + repo = "discord-screenaudio"; + rev = "v${version}"; + hash = "sha256-it7JSmiDz3k1j+qEZrrNhyAuoixiQuiEbXac7lbJmko="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + wrapQtAppsHook + cmake + pkg-config + ]; + + buildInputs = [ + qtbase + qtwebengine + qtwayland + pipewire + ]; + + preConfigure = '' + # version.cmake either uses git tags or a version.txt file to get app version. + # Since cmake can't access git tags, write the version to a version.txt ourselves. + echo "${version}" > version.txt + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "A custom discord client that supports streaming with audio on Linux"; + homepage = "https://github.com/maltejur/discord-screenaudio"; + downloadPage = "https://github.com/maltejur/discord-screenaudio/releases"; + changelog = "https://github.com/maltejur/discord-screenaudio/releases/tag/v${version}"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ huantian ]; + platforms = lib.platforms.linux; + }; +} |