depot/third_party/nixpkgs/pkgs/tools/X11/xdotool/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

31 lines
868 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, libX11, perl, libXtst, xorgproto, libXi, libXinerama, libxkbcommon, libXext }:
stdenv.mkDerivation rec {
pname = "xdotool";
version = "3.20211022.1";
src = fetchFromGitHub {
owner = "jordansissel";
repo = pname;
rev = "v${version}";
sha256 = "sha256-XFiaiHHtUSNFw+xhUR29+2RUHOa+Eyj1HHfjCUjwd9k=";
};
nativeBuildInputs = [ pkg-config perl ];
buildInputs = [ libX11 libXtst xorgproto libXi libXinerama libxkbcommon libXext ];
preBuild = ''
mkdir -p $out/lib
'';
makeFlags = [ "PREFIX=$(out)" ];
meta = {
homepage = "https://www.semicomplete.com/projects/xdotool/";
description = "Fake keyboard/mouse input, window management, and more";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = with lib.platforms; linux;
mainProgram = "xdotool";
};
}