mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
macos-instantview: init
macos-instantview: update sourceProvenance description, versioning compliance self -> finalAttrs
This commit is contained in:
parent
5d3dee1b6d
commit
66231b5108
1 changed files with 44 additions and 0 deletions
44
pkgs/by-name/ma/macos-instantview/package.nix
Normal file
44
pkgs/by-name/ma/macos-instantview/package.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
lib,
|
||||
_7zz,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "instantview";
|
||||
version = "3.22R0002";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.siliconmotion.com/downloads/macOS_InstantView_V${finalAttrs.version}.dmg";
|
||||
hash = "sha256-PdgX9zCrVYtNbuOCYKVo9cegCG/VY7QXetivVsUltbg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ _7zz ];
|
||||
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out/Applications"
|
||||
|
||||
# Extract the DMG using 7zip
|
||||
7zz x "$src" -oextracted -y
|
||||
|
||||
# Move the extracted contents to $out
|
||||
cp -r extracted/* "$out/Applications/"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
platforms = lib.platforms.darwin;
|
||||
description = "USB Docking Station plugin-and-display support with SM76x driver";
|
||||
homepage = "https://www.siliconmotion.com/events/instantview/";
|
||||
license = lib.licenses.unfree;
|
||||
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
||||
maintainers = with lib.maintainers; [ aspauldingcode ];
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue