diff --git a/pkgs/tools/admin/realvnc-vnc-viewer/darwin.nix b/pkgs/tools/admin/realvnc-vnc-viewer/darwin.nix index b55ff360c75e..4bd6869d2def 100644 --- a/pkgs/tools/admin/realvnc-vnc-viewer/darwin.nix +++ b/pkgs/tools/admin/realvnc-vnc-viewer/darwin.nix @@ -1,6 +1,6 @@ { lib , stdenvNoCC -, requireFile +, fetchurl , undmg , pname , version @@ -9,17 +9,10 @@ stdenvNoCC.mkDerivation (finalAttrs: { inherit pname version meta; - src = requireFile rec { + src = fetchurl rec { name = "VNC-Viewer-${finalAttrs.version}-MacOSX-universal.dmg"; url = "https://downloads.realvnc.com/download/file/viewer.files/${name}"; sha256 = "0k72fdnx1zmyi9z5n3lazc7s70gcddxq0s73akp0al0y9hzq9prh"; - 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} - ''; }; sourceRoot = "."; diff --git a/pkgs/tools/admin/realvnc-vnc-viewer/default.nix b/pkgs/tools/admin/realvnc-vnc-viewer/default.nix index 38f3986b6a5b..9776ececcfd2 100644 --- a/pkgs/tools/admin/realvnc-vnc-viewer/default.nix +++ b/pkgs/tools/admin/realvnc-vnc-viewer/default.nix @@ -17,7 +17,6 @@ let }; maintainers = with maintainers; [ emilytrau onedragon ]; platforms = [ "x86_64-linux" ] ++ platforms.darwin; - hydraPlatforms = []; mainProgram = "vncviewer"; }; in diff --git a/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix b/pkgs/tools/admin/realvnc-vnc-viewer/linux.nix index 164fe67b6804..552b1dc03539 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}");