2021-07-25 10:11:32 +03:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, rpmextract, libX11, libXext }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "realvnc-vnc-viewer";
|
2022-07-31 17:00:53 +03:00
|
|
|
version = "6.22.515";
|
2021-07-25 10:11:32 +03:00
|
|
|
|
|
|
|
src = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
|
|
|
url = "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x64.rpm";
|
2022-07-31 17:00:53 +03:00
|
|
|
sha256 = "1l9kfmb1695pv2v9hm8z5yr7y5yhadbbs61s4yf9ksvvfypzwrpn";
|
2021-07-25 10:11:32 +03:00
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
|
|
|
url = "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x86.rpm";
|
2022-07-31 17:00:53 +03:00
|
|
|
sha256 = "15fi1siwbsxmy7qi6f8r8ym346a8mx3kqcp9mvwvx39wm3ija6dh";
|
2021-07-25 10:11:32 +03:00
|
|
|
};
|
2021-11-08 14:00:43 +03:00
|
|
|
}.${stdenv.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
2021-07-25 10:11:32 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook rpmextract ];
|
|
|
|
buildInputs = [ libX11 libXext ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
rpmextract $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./usr/share/applications/realvnc-vncviewer.desktop \
|
|
|
|
--replace /usr/share/icons/hicolor/48x48/apps/vncviewer48x48.png vncviewer48x48.png
|
|
|
|
substituteInPlace ./usr/share/mimelnk/application/realvnc-vncviewer-mime.desktop \
|
|
|
|
--replace /usr/share/icons/hicolor/48x48/apps/vncviewer48x48.png vncviewer48x48.png
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mv usr $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "VNC remote desktop client software by RealVNC";
|
|
|
|
homepage = "https://www.realvnc.com/en/connect/download/viewer/";
|
2022-07-31 17:00:53 +03:00
|
|
|
mainProgram = "vncviewer";
|
2022-06-11 14:39:29 +03:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-07-25 10:11:32 +03:00
|
|
|
license = {
|
|
|
|
fullName = "VNC Connect End User License Agreement";
|
|
|
|
url = "https://static.realvnc.com/media/documents/LICENSE-4.0a_en.pdf";
|
|
|
|
free = false;
|
|
|
|
};
|
2022-02-11 07:45:03 +03:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-07-25 10:11:32 +03:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|