mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 20:23:39 +00:00
mactracker: init at 7.13
This commit is contained in:
parent
7acb5c5b59
commit
6b41e525a1
46
pkgs/by-name/ma/mactracker/package.nix
Normal file
46
pkgs/by-name/ma/mactracker/package.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
unzip,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "mactracker";
|
||||
version = "7.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://mactracker.ca/downloads/Mactracker_${finalAttrs.version}.zip";
|
||||
hash = "sha256-GbaGhYF9Pf3EpzoLQd9fkWYxHFwCkYdlRyy33lieUxM=";
|
||||
};
|
||||
|
||||
dontPatch = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontFixup = true;
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
sourceRoot = "Mactracker.app";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/Applications
|
||||
unzip -d $out/Applications $src -x '__MACOSX/*'
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Mactracker provides detailed information on every Apple Macintosh, iPod, iPhone, iPad, and Apple Watch ever made";
|
||||
homepage = "https://mactracker.ca";
|
||||
changelog = "https://mactracker.ca/releasenotes-mac.html";
|
||||
license = lib.licenses.unfree;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
maintainers = with lib.maintainers; [ DimitarNestorov ];
|
||||
platforms = [
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user