Unverified Commit 61aaaa5b authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #208042 from cbleslie/master

parents 77044761 a8cfa9b5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2503,6 +2503,12 @@
    matrix = "@cawilliamson:nixos.dev";
    name = "Christopher A. Williamson";
  };
  cbleslie = {
    email = "cameronleslie@gmail.com";
    github = "cbleslie";
    githubId = 500963;
    name = "C.B.Leslie";
  };
  cbley = {
    email = "claudio.bley@gmail.com";
    github = "avdv";
+33 −0
Original line number Diff line number Diff line
{ 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.1.0";

  src = fetchurl {
    url =
      "https://github.com/MonitorControl/${pname}/releases/download/v${version}/MonitorControl.${version}.dmg";
    sha256 = "iaxM9j78Sq1EH5TCY240N+D5bG6quk2dZj8T7nt9ATo=";
  };

  nativeBuildInputs = [ undmg ];

  sourceRoot = "MonitorControl.app";

  installPhase = ''
    mkdir -p "$out/Applications/MonitorControl.app"
    cp -R . "$out/Applications/MonitorControl.app"
  '';

  meta = with lib; {
    description = "A 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 ];
    platforms = platforms.darwin;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -31711,6 +31711,8 @@ with pkgs;
  mod-distortion = callPackage ../applications/audio/mod-distortion { };
  monitorcontrol = callPackage ../applications/misc/monitorcontrol { };
  xmr-stak = callPackage ../applications/misc/xmr-stak { };
  xmrig = darwin.apple_sdk_11_0.callPackage ../applications/misc/xmrig { };