mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
29 lines
574 B
Nix
29 lines
574 B
Nix
{ stdenvNoCC
|
|
, fetchurl
|
|
, undmg
|
|
, pname
|
|
, version
|
|
, meta
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
inherit pname version meta;
|
|
|
|
src = fetchurl rec {
|
|
name = "VNC-Viewer-${finalAttrs.version}-MacOSX-universal.dmg";
|
|
url = "https://downloads.realvnc.com/download/file/viewer.files/${name}";
|
|
hash = "sha256-SiBlw9ihKDLDWBPUxn3cfM0jbUaWDxQ9JDaeDNczQ7c=";
|
|
};
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
cp -r *.app $out/Applications
|
|
|
|
runHook postInstall
|
|
'';
|
|
})
|