{ 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; # }; }