about summary refs log tree commit diff
path: root/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/admin/realvnc-vnc-viewer/linux.nix')
-rw-r--r--pkgs/tools/admin/realvnc-vnc-viewer/linux.nix13
1 files changed, 3 insertions, 10 deletions
diff --git a/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix b/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix
index 164fe67b6804f..552b1dc035392 100644
--- a/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix
+++ b/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix
@@ -1,6 +1,6 @@
 { lib
 , stdenv
-, requireFile
+, fetchurl
 , autoPatchelfHook
 , rpmextract
 , libX11
@@ -13,18 +13,11 @@
 stdenv.mkDerivation (finalAttrs: {
   inherit pname version;
 
-  src = {
-    "x86_64-linux" = requireFile rec {
+  src = rec {
+    "x86_64-linux" = fetchurl rec {
       name = "VNC-Viewer-${finalAttrs.version}-Linux-x64.rpm";
       url = "https://downloads.realvnc.com/download/file/viewer.files/${name}";
       sha256 = "sha256-Ull9iNi8NxB12YwEThWE0P9k1xOV2LZnebuRrVH/zwI=";
-      message= ''
-        vnc-viewer can be downloaded from ${url},
-        but the download link require captcha, thus if you wish to use this application,
-        you need to download it manually and use follow command to add downloaded files into nix-store
-
-        $ nix-prefetch-url --type sha256 file:///path/to/${name}
-      '';
     };
   }.${stdenv.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");