ctucx.git: nixfiles

ctucx' nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
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;
#  };
}