2024-07-17 03:26:36 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
2024-06-24 09:19:12 +00:00
|
|
|
fetchurl,
|
2023-07-07 14:34:05 +00:00
|
|
|
undmg,
|
|
|
|
pname,
|
|
|
|
version,
|
|
|
|
meta,
|
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
inherit pname version meta;
|
|
|
|
|
2024-06-24 09:19:12 +00:00
|
|
|
src = fetchurl rec {
|
2024-04-14 15:29:05 +00:00
|
|
|
name = "VNC-Viewer-${finalAttrs.version}-MacOSX-universal.dmg";
|
|
|
|
url = "https://downloads.realvnc.com/download/file/viewer.files/${name}";
|
2024-09-14 07:39:47 +00:00
|
|
|
hash = "sha256-SiBlw9ihKDLDWBPUxn3cfM0jbUaWDxQ9JDaeDNczQ7c=";
|
2023-07-07 14:34:05 +00:00
|
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
})
|