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