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

31 lines
865 B
Nix
Raw Normal View History

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