xin/pkgs/hammerspoon.nix

28 lines
705 B
Nix
Raw Normal View History

2023-01-01 18:06:16 -07:00
{ lib, fetchurl, stdenv, unzip, isUnstable }:
stdenv.mkDerivation rec {
pname = "hammerspoon";
version = "0.9.97";
src = fetchurl {
name = "Hammerspoon-${version}.zip";
url =
"https://github.com/Hammerspoon/hammerspoon/releases/download/${version}/Hammerspoon-${version}.zip";
hash = "sha256-7y7YZYmB+KMVdHZXLdic5JanXQl6vtaTmqmvkFa8UTM=";
};
buildInputs = [ unzip ];
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;
};
}