10 version = "0-unstable-2020-12-23";
12 src = fetchFromGitHub {
15 rev = "ed60c4efeddea8a9778a976c49c650eee3840eac";
16 hash = "sha256-FyiFSVeO46UnBrpC8AhSuGe7alo37pT8J1qQWGPqV2U=";
19 buildInputs = [ swiftPackages.apple_sdk.frameworks.AppKit ];
24 install -Dm 755 smc -t $out/bin
30 description = "Apple SMC (System Management Controller) API fuzzer";
32 smc-fuzzer uses the AppleSMC IOKit interface and a userland API for
33 interacting with the System Management Controller (Mac embedded
34 controllers). The tool focuses on the SMC key/value API.
36 smc-fuzzer is not just useful for fuzzing the SMC itself: it can also be
37 used to explicitly control or query the SMC. That makes it useful in
38 system management, e.g. controlling and querying the charge status of an
41 homepage = "https://github.com/theopolis/smc-fuzzer";
42 license = lib.licenses.gpl2Plus;
43 maintainers = with lib.maintainers; [ hraban ];
45 platforms = lib.platforms.darwin;