swiftlint: 0.58.0 -> 0.58.2 (#374497)
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / discord-screenaudio / default.nix
blobcf8eab529474f40ae0bf82f2cc588e2ea2b5b078
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   wrapQtAppsHook,
6   cmake,
7   pkg-config,
8   qtbase,
9   qtwebengine,
10   qtwayland,
11   pipewire,
12   kdePackages,
13   nix-update-script,
16 stdenv.mkDerivation rec {
17   pname = "discord-screenaudio";
18   version = "1.10.1";
20   src = fetchFromGitHub {
21     owner = "maltejur";
22     repo = "discord-screenaudio";
23     rev = "v${version}";
24     hash = "sha256-+F+XRBQn4AVDVARdM2XtBDE7c6tMPZTR3cntDL8aenw=";
25     fetchSubmodules = true;
26   };
28   nativeBuildInputs = [
29     wrapQtAppsHook
30     cmake
31     pkg-config
32   ];
34   buildInputs = [
35     qtbase
36     qtwebengine
37     qtwayland
38     pipewire
39     kdePackages.knotifications
40     kdePackages.kxmlgui
41     kdePackages.kglobalaccel
42   ];
44   preConfigure = ''
45     # version.cmake either uses git tags or a version.txt file to get app version.
46     # Since cmake can't access git tags, write the version to a version.txt ourselves.
47     echo "${version}" > version.txt
48   '';
50   passthru.updateScript = nix-update-script { };
52   meta = {
53     description = "Custom discord client that supports streaming with audio on Linux";
54     mainProgram = "discord-screenaudio";
55     homepage = "https://github.com/maltejur/discord-screenaudio";
56     downloadPage = "https://github.com/maltejur/discord-screenaudio/releases";
57     changelog = "https://github.com/maltejur/discord-screenaudio/releases/tag/v${version}";
58     license = lib.licenses.gpl3Only;
59     maintainers = with lib.maintainers; [ huantian ];
60     platforms = lib.platforms.linux;
61   };