1
0
Fork 0
nix-overlay/packages/cliclick.nix

46 lines
912 B
Nix
Raw Normal View History

2023-05-10 23:04:05 +00:00
{ pkgs, lib }:
2021-12-14 18:12:41 +00:00
2022-08-17 12:13:58 +00:00
pkgs.stdenv.mkDerivation rec {
2021-12-14 18:12:41 +00:00
pname = "cliclick";
2022-08-17 12:13:58 +00:00
version = "5.1";
2021-12-14 18:12:41 +00:00
src = pkgs.fetchFromGitHub {
owner = "BlueM";
2022-08-17 12:07:54 +00:00
repo = pname;
2022-08-17 12:13:58 +00:00
rev = version;
sha256 = "sha256-8lWfeRPCF2zn9U79uZkhlj0izGSueTZuYpJx1LgsyfQ=";
2021-12-14 18:12:41 +00:00
fetchSubmodules = false;
};
NIX_CFLAGS_COMPILE = "-include cliclick_Prefix.pch -I Actions -I .";
buildInputs = (with pkgs; [
perl
]) ++ (with pkgs.darwin.apple_sdk.frameworks; [
Carbon
Cocoa
Foundation
IOKit
]);
2022-03-19 21:12:18 +00:00
dontStrip = true;
2021-12-14 18:12:41 +00:00
installPhase = ''
mkdir -p $out/bin
cp cliclick $out/bin
'';
2021-12-18 18:41:03 +00:00
2022-03-19 21:12:18 +00:00
doInstallCheck = true;
installCheckPhase = ''
$out/bin/cliclick -V
'';
2021-12-18 18:41:03 +00:00
meta = with lib; {
description = "macOS CLI tool for emulating mouse and keyboard events";
homepage = "https://github.com/BlueM/cliclick";
license = licenses.bsd3;
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
};
2021-12-14 18:12:41 +00:00
}