ctucx.git: nixfiles

ctucx' nixfiles

commit 9808e3894f6e4bca8c23a07e193aa5125cb3bb42
parent f403db29d1ce7301f9a6bc393fe15e3c350a7e9a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 13:38:22 +0200

pkgs/macApps: add Hot.app
1 file changed, 26 insertions(+), 0 deletions(-)
A
pkgs/macApps/Hot.nix
|
26
++++++++++++++++++++++++++
diff --git a/pkgs/macApps/Hot.nix b/pkgs/macApps/Hot.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, unzip, ... }:
+
+stdenv.mkDerivation rec {
+  pname   = "Hot";
+  version = "1.6.1";
+
+  buildInputs  = [ unzip ];
+  sourceRoot   = ".";
+  phases       = [ "unpackPhase" "installPhase" ];
+  installPhase = ''
+    mkdir -p "$out/Applications"
+    cp -r Hot.app "$out/Applications/Hot.app"
+  '';
+
+  src = fetchurl {
+    name   = "Hot-${version}.zip";
+    url    = "https://github.com/macmade/Hot/releases/download/${version}/Hot.app.zip";
+    sha256 = "110qsfyszgnabpkfh4cspaigsmz577z1qvmhnm5jpqjzqmi0zbiy";
+  };
+
+#  meta = with stdenv.lib; {
+#    description = "Hot is macOS menu bar application that displays the CPU speed limit due to thermal issues.";
+#    homepage    = "https://github.com/macmade/Hot";
+#    platforms   = platforms.darwin;
+#  };
+}