1 { lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron
2 , alsa-lib, gtk3, libxshmfence, mesa, nss }:
4 stdenv.mkDerivation rec {
9 url = "https://github.com/cutls/TheDesk/releases/download/v${version}/${pname}_${version}_amd64.deb";
10 sha256 = "sha256-AdjygNnQ3qQB03cGcQ5EB0cY3XXWLrzfCqw/U8tq1Yo=";
19 buildInputs = [ alsa-lib gtk3 libxshmfence mesa nss ];
34 # binary is not used and probably vulnerable to CVE(s)
35 rm $out/opt/TheDesk/thedesk
37 substituteInPlace $out/share/applications/thedesk.desktop \
38 --replace '/opt/TheDesk' $out/bin
40 makeWrapper ${electron}/bin/electron $out/bin/thedesk \
41 --add-flags $out/opt/TheDesk/resources/app.asar
47 description = "Mastodon/Misskey Client for PC";
48 homepage = "https://thedesk.top";
49 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
50 license = licenses.gpl3Only;
52 platforms = [ "x86_64-linux" ];
53 mainProgram = "thedesk";