ctucx.git: nixfiles

ctucx' nixfiles

commit 1b615465ba769dfc207c912e6fb2966260b175e2
parent 2b698c97627909800af6b7d75cfeea1337d92b30
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 2 Apr 2022 22:50:47 +0200

pkgs/macApps: add "KeepingYouAwake"
1 file changed, 26 insertions(+), 0 deletions(-)
A
pkgs/macApps/KeepingYouAwake.nix
|
26
++++++++++++++++++++++++++
diff --git a/pkgs/macApps/KeepingYouAwake.nix b/pkgs/macApps/KeepingYouAwake.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, unzip, ... }:
+
+stdenv.mkDerivation rec {
+  pname   = "KeepingYouAwake";
+  version = "1.6.2";
+
+  buildInputs  = [ unzip ];
+  sourceRoot   = ".";
+  phases       = [ "unpackPhase" "installPhase" ];
+  installPhase = ''
+    mkdir -p "$out/Applications"
+    cp -r KeepingYouAwake.app "$out/Applications/KeepingYouAwake.app"
+  '';
+
+  src = fetchurl {
+    name   = "KeepingYouAwake-${version}.zip";
+    url    = "https://github.com/newmarcel/KeepingYouAwake/releases/download/${version}/KeepingYouAwake-${version}.zip";
+    sha256 = "08zk4v5905vmf583q4ab5wc5m2vwpxsjp740xk9083na2047ifc9";
+  };
+
+#  meta = with stdenv.lib; {
+#    description = "Prevents your Mac from going to sleep.";
+#    homepage    = "https://github.com/newmarcel/KeepingYouAwake";
+#    platforms   = platforms.darwin;
+#  };
+}