diff options
author | Angus Trau <me@angus.ws> | 2021-07-25 17:11:32 +1000 |
---|---|---|
committer | Angus Trau <me@angus.ws> | 2021-07-27 21:34:12 +1000 |
commit | 014b404f0395cc5d9f2b18ee0b8d7481abb3f471 (patch) | |
tree | dc28a5429335ba559420c81c4b9a1d99e856fc6f /pkgs/tools/admin/realvnc-vnc-viewer | |
parent | 2129356a6405cc342e860d87623d3823e8ee3b8c (diff) | |
download | nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.tar nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.tar.gz nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.tar.bz2 nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.tar.lz nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.tar.xz nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.tar.zst nixpkgs-014b404f0395cc5d9f2b18ee0b8d7481abb3f471.zip |
realvnc-vnc-viewer: init at 6.21.406
Diffstat (limited to 'pkgs/tools/admin/realvnc-vnc-viewer')
-rw-r--r-- | pkgs/tools/admin/realvnc-vnc-viewer/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/admin/realvnc-vnc-viewer/default.nix b/pkgs/tools/admin/realvnc-vnc-viewer/default.nix new file mode 100644 index 00000000000..690c215471c --- /dev/null +++ b/pkgs/tools/admin/realvnc-vnc-viewer/default.nix @@ -0,0 +1,51 @@ +{ lib, stdenv, fetchurl, autoPatchelfHook, rpmextract, libX11, libXext }: + +stdenv.mkDerivation rec { + pname = "realvnc-vnc-viewer"; + version = "6.21.406"; + + src = { + "x86_64-linux" = fetchurl { + url = "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x64.rpm"; + sha256 = "0rnizzanaykqg1vfy56p8abc4fmgpbibj54j4c1v81zsj3kmahka"; + }; + "i686-linux" = fetchurl { + url = "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x86.rpm"; + sha256 = "1rlxfiqymi1licn2spyiqa00kiwzhdr0pkh7vv3ai6gb9f6phk31"; + }; + }.${stdenv.system}; + + 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/"; + license = { + fullName = "VNC Connect End User License Agreement"; + url = "https://static.realvnc.com/media/documents/LICENSE-4.0a_en.pdf"; + free = false; + }; + maintainers = with maintainers; [ angustrau ]; + platforms = [ "x86_64-linux" "i686-linux" ]; + }; +} |