2021-08-15 21:28:37 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, libX11, perl, libXtst, xorgproto, libXi, libXinerama, libxkbcommon, libXext }:
|
2011-04-19 22:51:40 +02:00
|
|
|
|
2015-09-12 12:12:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xdotool";
|
2021-10-28 09:43:39 +02:00
|
|
|
version = "3.20211022.1";
|
2016-11-07 22:18:29 +01:00
|
|
|
|
2021-08-15 21:28:37 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jordansissel";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-28 09:43:39 +02:00
|
|
|
sha256 = "sha256-XFiaiHHtUSNFw+xhUR29+2RUHOa+Eyj1HHfjCUjwd9k=";
|
2011-04-19 22:51:40 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ pkg-config perl ];
|
2021-08-15 21:28:37 +02:00
|
|
|
buildInputs = [ libX11 libXtst xorgproto libXi libXinerama libxkbcommon libXext ];
|
2011-04-19 22:51:40 +02:00
|
|
|
|
2016-11-07 22:18:29 +01:00
|
|
|
preBuild = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
'';
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2011-04-19 22:51:40 +02:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.semicomplete.com/projects/xdotool/";
|
2011-04-19 22:51:40 +02:00
|
|
|
description = "Fake keyboard/mouse input, window management, and more";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2011-04-19 22:51:40 +02:00
|
|
|
};
|
|
|
|
}
|