2023-09-12 08:44:05 -06:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, stdenv
|
|
|
|
, unzip
|
|
|
|
, ...
|
2023-07-11 09:12:50 -06:00
|
|
|
}:
|
2023-01-01 18:06:16 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hammerspoon";
|
|
|
|
version = "0.9.97";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "Hammerspoon-${version}.zip";
|
2023-07-11 09:12:50 -06:00
|
|
|
url = "https://github.com/Hammerspoon/hammerspoon/releases/download/${version}/Hammerspoon-${version}.zip";
|
2023-01-01 18:06:16 -07:00
|
|
|
hash = "sha256-7y7YZYmB+KMVdHZXLdic5JanXQl6vtaTmqmvkFa8UTM=";
|
|
|
|
};
|
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
buildInputs = [ unzip ];
|
2023-01-01 18:06:16 -07:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -R ../*.app $out/Applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2023-01-03 08:24:32 -07:00
|
|
|
description = "Staggeringly powerful macOS desktop automation with Lua";
|
2023-01-01 18:06:16 -07:00
|
|
|
homepage = "http://www.hammerspoon.org/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|