depot/third_party/nixpkgs/pkgs/tools/X11/xdotool/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

28 lines
873 B
Nix

{ lib, stdenv, fetchurl, pkg-config, libX11, perl, libXtst, xorgproto, libXi, libXinerama, libxkbcommon }:
stdenv.mkDerivation rec {
pname = "xdotool";
version = "3.20160805.1";
src = fetchurl {
url = "https://github.com/jordansissel/xdotool/releases/download/v${version}/xdotool-${version}.tar.gz";
sha256 = "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim";
};
nativeBuildInputs = [ pkg-config perl ];
buildInputs = [ libX11 libXtst xorgproto libXi libXinerama libxkbcommon ];
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 = with lib.maintainers; [viric];
platforms = with lib.platforms; linux;
};
}