2023-08-17 03:14:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, qtwebengine
|
|
|
|
, qtwayland
|
|
|
|
, pipewire
|
2024-03-30 00:33:49 +00:00
|
|
|
, kdePackages
|
2023-08-17 03:14:35 +00:00
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "discord-screenaudio";
|
2024-03-30 00:33:49 +00:00
|
|
|
version = "1.10.1";
|
2023-08-17 03:14:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maltejur";
|
|
|
|
repo = "discord-screenaudio";
|
|
|
|
rev = "v${version}";
|
2024-03-30 00:33:49 +00:00
|
|
|
hash = "sha256-+F+XRBQn4AVDVARdM2XtBDE7c6tMPZTR3cntDL8aenw=";
|
2023-08-17 03:14:35 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtwebengine
|
|
|
|
qtwayland
|
|
|
|
pipewire
|
2024-03-30 00:33:49 +00:00
|
|
|
kdePackages.knotifications
|
|
|
|
kdePackages.kxmlgui
|
|
|
|
kdePackages.kglobalaccel
|
2023-08-17 03:14:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "discord-screenaudio";
|
2023-08-17 03:14:35 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|