xin/pkgs/hammerspoon.nix

28 lines
698 B
Nix
Raw Normal View History

2023-04-12 16:51:57 -06:00
{ lib, fetchurl, stdenv, unzip, ... }:
2023-01-01 18:06:16 -07:00
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;
};
}