mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ lib, fetchurl, stdenv, _7zz }:
|
|
|
|
# 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.2.0";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/MonitorControl/${pname}/releases/download/v${version}/MonitorControl.${version}.dmg";
|
|
sha256 = "Q96uK6wVe1D2uLvWL+pFR6LcmrU7cgmr2Y5tPvvTDgI=";
|
|
};
|
|
|
|
# MonitorControl.${version}.dmg is APFS formatted, unpack with 7zz
|
|
nativeBuildInputs = [ _7zz ];
|
|
|
|
sourceRoot = "MonitorControl.app";
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/Applications/MonitorControl.app"
|
|
cp -R . "$out/Applications/MonitorControl.app"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ cbleslie cottand ];
|
|
platforms = platforms.darwin;
|
|
};
|
|
}
|