Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
stdenv,
|
|
undmg,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
let
|
|
snapshot = "20250820185748";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "suspicious-package";
|
|
version = "4.6";
|
|
|
|
src = fetchurl {
|
|
# Use externally archived download URL because
|
|
# upstream does not provide stable URLs for versioned releases
|
|
url = "https://web.archive.org/web/${snapshot}/https://www.mothersruin.com/software/downloads/SuspiciousPackage.dmg";
|
|
hash = "sha256-SJcXqQR/di3T8K3uNKv00QkLsmDGJNU9NQEIpDSqYJM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
sourceRoot = "Suspicious Package.app";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/Applications/Suspicious Package.app" $out/bin
|
|
cp -R . "$out/Applications/Suspicious Package.app"
|
|
ln -s "../Applications/Suspicious Package.app/Contents/SharedSupport/spkg" $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "Toolkit for analysing macOS packages";
|
|
homepage = "https://www.mothersruin.com/software/SuspiciousPackage/";
|
|
license = lib.licenses.unfreeRedistributable;
|
|
maintainers = with lib.maintainers; [ andre4ik3 ];
|
|
mainProgram = "spkg";
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|