mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
m1ddc: init at 1.2.0
This commit is contained in:
parent
7aef1dc247
commit
2e89aba144
43
pkgs/by-name/m1/m1ddc/package.nix
Normal file
43
pkgs/by-name/m1/m1ddc/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ stdenv
|
||||
, darwin
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "m1ddc";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "waydabber";
|
||||
repo = "m1ddc";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-obs2qQvSkIDsWhCXJOF1Geiqqy19KDf0InyxRVod4hk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace sources/ioregistry.m \
|
||||
--replace-fail kIOMainPortDefault kIOMasterPortDefault
|
||||
'';
|
||||
|
||||
buildInputs = with darwin.apple_sdk_11_0.frameworks; [
|
||||
CoreDisplay
|
||||
Foundation
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp m1ddc $out/bin
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Control external displays using DDC/CI on Apple Silicon Macs";
|
||||
homepage = "https://github.com/waydabber/m1ddc";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "m1ddc";
|
||||
maintainers = [ lib.maintainers.joanmassachs ];
|
||||
platforms = [ "aarch64-darwin" ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user