thedesk: init at 22.3.1

+54
+50
pkgs/applications/misc/thedesk/default.nix
··· 1 + { lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron 2 + , alsa-lib, gtk3, libxshmfence, mesa, nss }: 3 + 4 + stdenv.mkDerivation rec { 5 + pname = "thedesk"; 6 + version = "22.3.1"; 7 + 8 + src = fetchurl { 9 + url = "https://github.com/cutls/TheDesk/releases/download/v${version}/${pname}_${version}_amd64.deb"; 10 + sha256 = "sha256-5KB88zMgwfObgmcMTe6R+oG48qLHrMht6vM1EvI+QFY="; 11 + }; 12 + 13 + nativeBuildInputs = [ 14 + dpkg 15 + autoPatchelfHook 16 + makeWrapper 17 + ]; 18 + 19 + buildInputs = [ alsa-lib gtk3 libxshmfence mesa nss ]; 20 + 21 + dontBuild = true; 22 + dontConfigure = true; 23 + 24 + unpackPhase = '' 25 + dpkg-deb -x ${src} ./ 26 + ''; 27 + 28 + installPhase = '' 29 + runHook preInstall 30 + 31 + mv usr $out 32 + mv opt $out 33 + 34 + substituteInPlace $out/share/applications/thedesk.desktop \ 35 + --replace '/opt/TheDesk' $out/bin 36 + 37 + makeWrapper ${electron}/bin/electron $out/bin/thedesk \ 38 + --add-flags $out/opt/TheDesk/resources/app.asar 39 + 40 + runHook postInstall 41 + ''; 42 + 43 + meta = with lib; { 44 + description = "Mastodon/Misskey Client for PC"; 45 + homepage = "https://thedesk.top"; 46 + license = licenses.gpl3Only; 47 + maintainers = with maintainers; [ wolfangaukang ]; 48 + platforms = [ "x86_64-linux" ]; 49 + }; 50 + }
+4
pkgs/top-level/all-packages.nix
··· 9844 9844 9845 9845 thc-ipv6 = callPackage ../tools/security/thc-ipv6 { }; 9846 9846 9847 + thedesk = callPackage ../applications/misc/thedesk { 9848 + electron = electron_12; 9849 + }; 9850 + 9847 9851 theharvester = callPackage ../tools/security/theharvester { }; 9848 9852 9849 9853 inherit (nodePackages) thelounge;