2024-07-27 06:49:29 +00:00
|
|
|
{ stdenvNoCC
|
2024-07-01 15:47:52 +00:00
|
|
|
, fetchurl
|
2023-08-10 07:59:29 +00:00
|
|
|
, undmg
|
|
|
|
, pname
|
|
|
|
, version
|
|
|
|
, meta
|
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
inherit pname version meta;
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
src = fetchurl rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
name = "VNC-Viewer-${finalAttrs.version}-MacOSX-universal.dmg";
|
|
|
|
url = "https://downloads.realvnc.com/download/file/viewer.files/${name}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-SiBlw9ihKDLDWBPUxn3cfM0jbUaWDxQ9JDaeDNczQ7c=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
})
|