7 stdenv.mkDerivation (finalAttrs: {
11 src = fetchFromGitHub {
14 rev = "v${finalAttrs.version}";
15 hash = "sha256-obs2qQvSkIDsWhCXJOF1Geiqqy19KDf0InyxRVod4hk=";
19 substituteInPlace sources/ioregistry.m \
20 --replace-fail kIOMainPortDefault kIOMasterPortDefault
23 buildInputs = with darwin.apple_sdk_11_0.frameworks; [
36 description = "Control external displays using DDC/CI on Apple Silicon Macs";
37 homepage = "https://github.com/waydabber/m1ddc";
38 license = lib.licenses.mit;
39 mainProgram = "m1ddc";
40 maintainers = [ lib.maintainers.joanmassachs ];
41 platforms = [ "aarch64-darwin" ];