Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
1.2 KiB
Nix

{
lib,
fetchurl,
stdenv,
undmg,
}:
# This cannot be built from source due to the problematic nature of XCode - so
# this is what it's like when doves cry?
stdenv.mkDerivation rec {
pname = "MonitorControl";
version = "4.3.3";
src = fetchurl {
url = "https://github.com/MonitorControl/${pname}/releases/download/v${version}/MonitorControl.${version}.dmg";
hash = "sha256-myx3adoU3FYYrs6LFRSiXtwSsoaujjQ/PYgAF/Xuk2g=";
};
nativeBuildInputs = [ undmg ];
sourceRoot = "MonitorControl.app";
unpackCmd = ''
runHook preUnpack
undmg $src
runHook postUnpack
'';
installPhase = ''
mkdir -p "$out/Applications/MonitorControl.app"
cp -R . "$out/Applications/MonitorControl.app"
'';
meta = {
description = "MacOS system extension to control brightness and volume of external displays with native OSD";
longDescription = "Controls your external display brightness and volume and shows native OSD. Use menulet sliders or the keyboard, including native Apple keys!";
homepage = "https://github.com/MonitorControl/MonitorControl#readme";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
cbleslie
cottand
];
platforms = lib.platforms.darwin;
};
}