ctucx.git: nixfiles

ctucx' nixfiles

commit 87fa7895b0e7e69ecf79d133e4dbfcdc7768d875
parent e8620f94bce596b8492e88eafa6a8960f9c8e509
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 20 Mar 2022 18:03:40 +0100

pkgs/macApps: add MonitorControl
1 file changed, 26 insertions(+), 0 deletions(-)
A
pkgs/macApps/MonitorControl.nix
|
26
++++++++++++++++++++++++++
diff --git a/pkgs/macApps/MonitorControl.nix b/pkgs/macApps/MonitorControl.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, undmg, ... }:
+
+stdenv.mkDerivation rec {
+  pname   = "MonitorControl";
+  version = "4.0.2";
+
+  buildInputs  = [ undmg ];
+  sourceRoot   = ".";
+  phases       = [ "unpackPhase" "installPhase" ];
+  installPhase = ''
+    mkdir -p "$out/Applications"
+    cp -r "MonitorControl.app" "$out/Applications/MonitorControl.app"
+  '';
+
+  src = fetchurl {
+    name   = "MonitorControl.${version}.dmg";
+    url    = "https://github.com/MonitorControl/MonitorControl/releases/download/v${version}/MonitorControl.${version}.dmg";
+    sha256 = "0b17a7hvv32ihsyj65j3xxkwq0q8hnmldlrlfpr2hid2zn4444w0";
+  };
+
+#  meta = with stdenv.lib; {
+#    description = "Control your display's brightness & volume on your Mac as if it was a native Apple Display";
+#    homepage    = "https://github.com/MonitorControl/MonitorControl";
+#    platforms   = platforms.darwin;
+#  };
+}