diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-01 19:00:09 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-01 19:00:09 +0100 |
commit | 9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d (patch) | |
tree | 4368f9e4cb2d5b93a956c085337e45cb70f1e331 /nixpkgs/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix | |
parent | a9cbfb6941b47d6f50129e6e36927882392daed7 (diff) | |
parent | 2344fe1da14cb08b0c18743b207995f9b8597915 (diff) | |
download | nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.gz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.bz2 nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.lz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.xz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.zst nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.zip |
Merge https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix b/nixpkgs/pkgs/applications/networking/instant-messengers/discord-screenaudio/default.nix new file mode 100644 index 000000000000..44ef7cae84c7 --- /dev/null +++ b/nixpkgs/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; + }; +} |