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, undmg, ... }:

stdenv.mkDerivation rec {
  pname   = "HiddenBar";
  version = "1.9";

  buildInputs  = [ undmg ];
  sourceRoot   = ".";
  phases       = [ "unpackPhase" "installPhase" ];
  installPhase = ''
    mkdir -p "$out/Applications"
    cp -r "Hidden Bar.app" "$out/Applications/Hidden Bar.app"
  '';

  src = fetchurl {
    name   = "Hidden.Bar.${version}.dmg";
    url    = "https://github.com/dwarvesf/hidden/releases/download/v${version}/Hidden.Bar.${version}.dmg";
    sha256 = "00kdnb5639i2mqgmcwby2izb9282f4a91qzbib0hpi61yljb0m1z";
  };

#  meta = with stdenv.lib; {
#    description = "An ultra-light MacOS utility that helps hide menu bar icons";
#    homepage    = "https://github.com/dwarvesf/hidden";
#    platforms   = platforms.darwin;
#  };
}