nixpkgs/pkgs/tools/X11/xdotool/default.nix

31 lines
865 B
Nix
Raw Normal View History

2021-08-15 19:28:37 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, libX11, perl, libXtst, xorgproto, libXi, libXinerama, libxkbcommon, libXext }:
2015-09-12 10:12:57 +00:00
stdenv.mkDerivation rec {
pname = "xdotool";
2021-09-05 03:50:28 +00:00
version = "3.20210903.1";
2016-11-07 21:18:29 +00:00
2021-08-15 19:28:37 +00:00
src = fetchFromGitHub {
owner = "jordansissel";
repo = pname;
rev = "v${version}";
2021-09-05 03:50:28 +00:00
sha256 = "sha256-fmz/CJm1GgNOYjOfC6uNwDa8jV+GczPw8m6Qb2jw3rE=";
};
nativeBuildInputs = [ pkg-config perl ];
2021-08-15 19:28:37 +00:00
buildInputs = [ libX11 libXtst xorgproto libXi libXinerama libxkbcommon libXext ];
2016-11-07 21:18:29 +00:00
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";
2021-01-15 09:19:50 +00:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [viric];
platforms = with lib.platforms; linux;
};
}