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

46 lines
946 B
Nix
Raw Normal View History

2021-12-18 18:41:03 +00:00
{ system, lib, pkgs }:
2021-12-14 18:12:41 +00:00
pkgs.stdenv.mkDerivation {
pname = "cliclick";
version = "5.0.1";
src = pkgs.fetchFromGitHub {
owner = "BlueM";
2022-08-17 12:07:54 +00:00
repo = pname;
2021-12-14 18:12:41 +00:00
rev = "79a49ff25f550fda5b2a1806366aa9d7facc46f3";
sha256 = "Wj1niLXCwBYTsXB2Qkdvs85BJD7uRqGIerCTjhS20ZQ=";
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
}