Merge pull request #142892 from WolfangAukang/thedesk
This commit is contained in:
commit
23022d9218
50
pkgs/applications/misc/thedesk/default.nix
Normal file
50
pkgs/applications/misc/thedesk/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron
|
||||
, alsa-lib, gtk3, libxshmfence, mesa, nss }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "thedesk";
|
||||
version = "22.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cutls/TheDesk/releases/download/v${version}/${pname}_${version}_amd64.deb";
|
||||
sha256 = "sha256-5KB88zMgwfObgmcMTe6R+oG48qLHrMht6vM1EvI+QFY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [ alsa-lib gtk3 libxshmfence mesa nss ];
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x ${src} ./
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mv usr $out
|
||||
mv opt $out
|
||||
|
||||
substituteInPlace $out/share/applications/thedesk.desktop \
|
||||
--replace '/opt/TheDesk' $out/bin
|
||||
|
||||
makeWrapper ${electron}/bin/electron $out/bin/thedesk \
|
||||
--add-flags $out/opt/TheDesk/resources/app.asar
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mastodon/Misskey Client for PC";
|
||||
homepage = "https://thedesk.top";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -9961,6 +9961,10 @@ with pkgs;
|
||||
|
||||
thc-ipv6 = callPackage ../tools/security/thc-ipv6 { };
|
||||
|
||||
thedesk = callPackage ../applications/misc/thedesk {
|
||||
electron = electron_12;
|
||||
};
|
||||
|
||||
theharvester = callPackage ../tools/security/theharvester { };
|
||||
|
||||
inherit (nodePackages) thelounge;
|
||||
|
Loading…
Reference in New Issue
Block a user