3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #226640 from jackyliu16/master

realvnc-vnc-viewer: 6.22.515 -> 7.1.0
This commit is contained in:
Weijia Wang 2023-04-18 14:51:19 +03:00 committed by GitHub
commit 75c131fc1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 11 deletions

View file

@ -11527,6 +11527,12 @@
githubId = 1538622;
name = "Michael Reilly";
};
onedragon = {
name = "YiLong Liu";
email = "18922251299@163.com";
github = "jackyliu16";
githubId = 50787361;
};
onixie = {
email = "onixie@gmail.com";
github = "onixie";

View file

@ -1,22 +1,25 @@
{ lib, stdenv, fetchurl, autoPatchelfHook, rpmextract, libX11, libXext }:
{ lib
, stdenv
, fetchurl
, autoPatchelfHook
, rpmextract
, libX11
, libXext
}:
stdenv.mkDerivation rec {
pname = "realvnc-vnc-viewer";
version = "6.22.515";
version = "7.1.0";
src = {
"x86_64-linux" = fetchurl {
url = "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x64.rpm";
sha256 = "1l9kfmb1695pv2v9hm8z5yr7y5yhadbbs61s4yf9ksvvfypzwrpn";
};
"i686-linux" = fetchurl {
url = "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x86.rpm";
sha256 = "15fi1siwbsxmy7qi6f8r8ym346a8mx3kqcp9mvwvx39wm3ija6dh";
url = "https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-${version}-Linux-x64.rpm";
sha256 = "sha256-Mn4K2HICK7owHcXH85IJUncnpPZ56zNybkHZNiqYkHY=";
};
}.${stdenv.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
nativeBuildInputs = [ autoPatchelfHook rpmextract ];
buildInputs = [ libX11 libXext ];
buildInputs = [ libX11 libXext stdenv.cc.cc.libgcc or null ];
unpackPhase = ''
rpmextract $src
@ -47,7 +50,7 @@ stdenv.mkDerivation rec {
url = "https://static.realvnc.com/media/documents/LICENSE-4.0a_en.pdf";
free = false;
};
maintainers = with maintainers; [ emilytrau ];
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ emilytrau onedragon ];
platforms = [ "x86_64-linux" ];
};
}